Skip to content

enriquebits/countUp.js

 
 

Repository files navigation

countUp.js

countUp.js is a dependency-free, lightweight JavaScript "class" that can be used to quickly create animations that display numerical data in a more interesting way.

Usage:

add library via bower, component, or directly.

require 'countUp'

create a new instance of countUp

var numAnim = new countUp("SomeElementYouWantToAnimate", startVal, endVal, decimals, duration)

start the instance

numAnim.start()

Full example:

var numAnim = new countUp("SomeElementYouWantToAnimate", 24.02, 99.99, 2, 1.5)
numAnim.start()

##Try the demo

About

Animates a numerical value by counting to it

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published