c-down
v0.0.6
Published
a simple count down util.
Downloads
36
Readme
c-down
a simple count down util.
useage
const cd = new CDown({
duration: 60, // default
interval: 1, // default
onProgress: (status, current) => {
console.log(status + ':' + current);
}
})duration
this counter duration.
interval
this counter interval.
onProgress
onProgress called with 2 params, status & current.
- status is one of 'start' 'running' or 'end', indicate the status of this counter.
- current is current count of this counter.
