Animates a counter up to a given value. Can also count in reverse.
About the Plugin
Counters are handled by the countup.js library.
Our script provides a wrapper to the countup.js library allowing options to be specified as data attributes on counter elements.
Our wrapper works in conjunction with scrollMonitor to begin counting when the element is scrolled into view.
Despite its name, CountUp can count in either direction, depending on the parameters passed in.
Counters are initialized by data-attributes on page load.
data-countup attribute to initialize the element as a counter.
parseFloat function, so you may use a decimal or integer.