Animates a numerical value by counting to it, for Angular 1.x
npm install countup.js-angular1Animates a numerical value by counting to it.
Despite its name, CountUp can count in either direction, depending on the start-val and end-val attributes that you pass.
- CountUp.js repo
- CountUp.js Angular ^2 Module
- CountUp.js React
- CountUp.js WordPress Plugin
Inject countUpModule. Use the count-up attribute to quickly create an animation. It also integrates nicely with the Angular-scroll-spy directive.
Attributes:
- end-val: Number (required)
- start-val: Number
- duration: Number
- decimals: Number
- options: Object (see CountUp)
Create your animation like the examples below:
``html`angular-scroll-spy
With :`html`
countup.js is configured as a dependency in package.json. If you are manually including dependencies, make sure to include:countUp.min.js
- angular-countUp.min.js
-
Before you make a pull request, please be sure to follow these simple instructions:
1. Do your work on angular-countUp.js in the root directory.cd
2. In Terminal, to the repo directory.npm install
3. Run , which installs gulp and its dependencies.gulp
4. Run , which copies and minifies the .js files to the dist` folder.