Closed seajean closed 5 years ago
try branch maxLenNum
:
yarn add https://github.com/gaoryrt/number-flip.git\#maxLenNum
specific the maxLenNum
in option:
new Flip({
node: $('.app'),
from: 100,
to: 10000,
maxLenNum: 5
})
maxLenNum
optional
: A number representing the number of digits, if not specified, length of digits would fits the maxLenNum of givenfrom
andto
. Otherwise, length of digits won't change (see more at this issue).
@gaoryrt Hi, friend. It seems that the property maxLenNum
doesn't work. And also could not be found in doc README.md
https://codepen.io/Tylerrrkd/pen/aRXNNd
@tylerrrkd it's in branch maxLenNum, instead of master.
try branch
maxLenNum
:yarn add https://github.com/gaoryrt/number-flip.git\#maxLenNum
read plz, READ
@gaoryrt ooouch, did'n merge.. sorry
@gaoryrt 5 to 8 works now, but 8 to 5 still go wrong.
@gaoryrt 5 to 8 works now, but 8 to 5 still go wrong.
Define 'wrong'.
for discussion of invisible leading zeros, see #12
How to download the '.min.js' of this branch like https://unpkg.com/number-flip@1.0.28/dist/number-flip.min.js?
@Robot-L seems unpkg is unavailable to do that, but you can folk and build one for your own usage. Considering the maxLenNum branch is far behind the master branch, merge it before building is recommended.
like form 5 to 8 digits
比如5位数滚动到8位数