gaoryrt / number-flip

🎰 Increase your number with flipping animation
https://codesandbox.io/embed/throbbing-flower-ncm0q
MIT License
645 stars 60 forks source link

support float #17

Closed whu12yz closed 5 years ago

whu12yz commented 5 years ago

2. Describe the solution you'd like from float to float ignore decimal point, put it where it is .

gaoryrt commented 5 years ago

Sorry but I don’t understand what you saying 'from float to float ignore decimal point’. Could you please describe what you encountered or make a minimal working example, like, in codesandbox.io?

whu12yz commented 5 years ago

I mean this repo may support flip from float to float, such as from 18.50 to 99.80. Although, we can init two instances. like this:

new Flip({from: 18, to: 99})
new Flip({from:50, to: 80})
gaoryrt commented 5 years ago

you can do it by using separator and seperateOnly

i wrote a demo: https://codesandbox.io/s/compassionate-dhawan-1d3kz