gaoryrt / number-flip

🎰 Increase your number with flipping animation

Home Page:https://codesandbox.io/embed/throbbing-flower-ncm0q

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hide the leading zeros when decreasing

gaoryrt opened this issue Β· comments

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.

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

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

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

But never thought making it a property πŸ€”πŸ€”πŸ€”

@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. 😯