Coder Social home page Coder Social logo

adapt-expose's Introduction

adapt-expose

Expose is a presentation component Created by Dan storey. Expose in action

The Expose component displays panels of content hidden behind front covers. When clicked the cover animates to expose the content below. A range of different animations are available as listed below. When clicked again the cover is restored.

Click here for an interactive demo

##Installation

Run the following from the command line: adapt install adapt-expose

Settings Overview

The attributes listed below are used in components.json to configure Expose, and are properly formatted as JSON in example.json.

Attributes

For core model attributes see core model attributes. The attributes listed below are specific to the Expose component.

_component (string): This value must be: expose (one word).

_columns (string): The number of expose items on one line. Items display full width on smaller screen sizes.

_animationType (string): Possible built-in values are shrink, flipUp, flipLeft, slideUp, slideDown, slideLeft, slideRight. You may also assign your own value and use css to create your own animation. Documentation for this coming soon.

_equalHeights (boolean): Heights of each item are automatically resized to match the tallest one. Set this value to false to override this behaviour.

_items (array): Each item represents a panel of content and its cover.

front (string): The text for item's cover (default ?).

back (object): An image to be used for the expose item (optional).

title (string): The body text for the item (optional).

body (string): The body text for the item.

graphic (object): An image to be used for the expose item (optional).

src (string): path of the image relative to the src folder.

alt (string): This text becomes the image’s alt attribute.

Limitations

No known limitations


Version number: 1.0 Framework versions: 2.0 Author / maintainer: Dan Storey

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.