It's a vue component that will count to a target number at a specified duration
vue-countTo is a dependency-free, lightweight vue component that can be overwrited easingFn by yourself.
You can set startVal and endVal ,it will automatic judge count up or count down.
It is support vue-ssr.
It is learn from countUp.js;
PanJiaChen/vue-countTo
vue-countTo
vue-countTo is a dependency-free, lightweight vue component that can be overwrited easingFn by yourself. You can set startVal and endVal ,it will automatic judge count up or count down. It is support vue-ssr. It is learn from countUp.js;
Try the demo
How to use?
Example
demo:
Use CDN Script: demo
Options
** notes: when autoplay:true , it will auto start when startVal or endVal change **
Functions