Counter component.
$ npm i component-counter
Initialize a new counter on an optional element with optional options.
var Counter = require('component-counter');
var counter = new Counter();
document.documentElement.appendChild(counter.el);
A class to add to each digit.
Initial digits number to create.
Set the total number of digits to n
.
Add a digit element.
Ensure at least n
digits are available.
Update digit i
with val
.
Update count to n
.
MIT