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.
var numAnim = new countUp("SomeElementYouWantToAnimate", 24.02, 99.99, 2, 1.5)
numAnim.start()with optional callback:
numAnim.start(someMethodToCallOnComplete);other methods:
numAnim.stop(); //stops the counter
numAnim.resume(); //restarts the counter after being stopped