gaoryrt / number-flip

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

hide the leading zeros when decreasing #12

Open gaoryrt opened 6 years ago

gaoryrt commented 6 years ago

1. Is your feature request related to a problem? Please describe. There will be some unnecessary zeros when decreasing the number, like, from 88888 to 555, it stops at '00555' with two leading zeros.

2. Describe the solution you'd like Hide the zeros with blank rows.

3. Describe alternatives you've considered opacity: 0 with css selector.

seajean commented 6 years ago

Not only zero, but also separator~ Changing from 1,000 to 999, display ,999

evinma commented 5 years ago

Is it possible to provide a property to customize whether to remove it?

gaoryrt commented 5 years ago

@evinma Got a branch for this: https://github.com/gaoryrt/number-flip/tree/maxLenNum

But never thought making it a property 🤔🤔🤔

evinma commented 5 years ago

@evinma Got a branch for this: https://github.com/gaoryrt/number-flip/tree/maxLenNum

But never thought making it a property 🤔🤔🤔

The maxLenNum is not very flexible. 😯