Skip to content

An Adapt Framework component which displays panels of content hidden behind front covers. Click to expose the content below

License

Notifications You must be signed in to change notification settings

danielstorey/adapt-expose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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


Framework versions: >=3.0.0 Author / maintainer: Dan Storey

About

An Adapt Framework component which displays panels of content hidden behind front covers. Click to expose the content below

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •