1.0.4 • Published 3 years ago

xj-count-jump v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

xj-count-jump

How to use?

npm install xj-count-jump

main.js

import xjCountJump from 'xj-count-jump'
Vue.use(xjCountJump)

Options

PropertyDescriptiontypedefault
startValthe value you want to begin atNumber0
endValthe value you want to arrive atNumber2017
durationduration in millisecondNumber3000
autoplaywhen mounted autoplayBooleantrue
decimalsthe number of decimal places to showNumber0
decimalthe split decimalString.
separatorthe separatorString,
prefixthe prefixString''
suffixthe suffixString''
colorthe colorString'#333'
fontSizethe fontSizeString,Number'14'
fontWeightthe fontWeightString'normal'
useEasingis use easing functionBooleantrue
easingFnthe easing functionFunction

notes: when autoplay:true , it will auto start when startVal or endVal change

Functions

Function NameDescription
mountedCallbackwhen mounted will emit mountedCallback
startstart the countTo
pausepause the countTo
resetreset the countTo
1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago