Skip to content

the-catalin/cat-accordion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Published on webcomponents.org

<cat-accordion>

<cat-accordion> is a Polymer element that displays an accordion with different possible effects: Ken Burns (zoom effect) and text appearance effects. The image is displayed via <cat-image> element and the text via <cat-text> element.

Demo

Install

Install the component using Bower:

$ bower install --save cat-accordion

Or download as ZIP

Usage

  1. Import Web Components' polyfill (if needed):

    <script src="bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>
  2. Import Custom Element:

    <link rel="import" href="bower_components/cat-accordion/cat-accordion.html">
    <link rel="import" href="bower_components/cat-image/cat-image.html">
    <link rel="import" href="bower_components/cat-text/cat-text.html">
  3. Start using it!

    <cat-accordion>
        <cat-image src="http://webcomponents.online/images/01.jpg">
            <cat-text> Sample text </cat-text>
            <cat-text> Another sample text </cat-text>
        </cat-image>
        <cat-image src="http://webcomponents.online/images/02.jpg">
            <cat-text> Sample text </cat-text>
            <cat-text> Another sample text </cat-text>
        </cat-image>
    </cat-accordion>

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -m 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request

History

For detailed changelog, check Releases.

License

The MIT License (MIT)

Copyright (c) 2017 Catalin Ungureanu

About

Accordion web component with various effects

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages