<cat-image>
is a Polymer element that displays an image with different possible effects: Ken Burns (zoom effect) and text appearance effects. The text is displayed via <cat-text> element.
Install the component using Bower:
$ bower install --save cat-image
-
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-image/cat-image.html"> <link rel="import" href="bower_components/cat-text/cat-text.html">
-
Start using it!
<cat-image src="your-image.jpg"> <cat-text>First sample text</cat-text> <cat-text>Second one</cat-text> </cat-image>
- 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