<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.
Install the component using Bower:
$ bower install --save cat-accordion
-
Import Web Components' polyfill (if needed):
<script src="bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>
-
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">
-
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>
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
For detailed changelog, check Releases.
Copyright (c) 2017 Catalin Ungureanu