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.
Install via npm using the package name countup.js
or bower using countUp.js
.
Current stars:
var options = {
useEasing : true,
easingFn : null,
useGrouping : true,
separator : ',',
decimal : '.'
}
var demo = new CountUp("myTargetElement", 24.02, 94.62, 0, 2, options);
demo.start();