Animated counter based on Polymer
Maintained by Cong Liu.
-
Import Web Components' polyfill:
<script src="bower_components/platform/platform.js"></script>
-
Start using it!
<a-counter></a-counter>
Attribute | Options | Default | Description |
---|---|---|---|
value |
string | "" |
Value to display on the counter |
pattern |
string | "[0-9]{10}" |
Pattern of the value in format of regular expression |
hold |
boolean | false |
Hold the animation on loaded or after the value changed. |
animation |
string | normal |
Speed of animation: slow (4s), normal (2s), fast (1s), super-fast (0.5s), none (no animation) |
- 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 :D
- v0.0.2 May 22, 2014
- Updated to bower version of Polymer 0.2.3
- v0.0.1 Nov 7, 2013
- Started project using boilerplate-element