angular-count-to

Angular directive to animate counting to a number
Homepage:
4 people use it
Author: A2de0373710ee2a028f2489fe370aeec?d=https%3a%2f%2fidenticons.github.com%2fc4c3dbb1f67972cbc2919cbe88a83441 sparkalow

Angular Count-To

This project is an animated counter for Angularjs. The directive counts from one number to another over a configured duration. Demo

How to use angular count-to

Include the javascript file.

Inject the count-to directive in your app.

Apply the directive to a dom element. <span count-to="{{countTo}}" value="{{countFrom}}" duration="4"></span>

Attributes

The following attributes can be set as numbers on the directive element.

  • count-to the number to count to.
  • value the number to start counting from.
  • duration how long the count should take in seconds.
comments powered by Disqus
This page was last updated over 3 years ago.