HubSpot / odometer

Smoothly transitions numbers with ease. #hubspot-open-source
http://github.hubspot.com/odometer/docs/welcome
MIT License
7.3k stars 712 forks source link

If element is hidden the counter doesn't goes to single 0 #132

Open aajahid opened 7 years ago

aajahid commented 7 years ago

If the counter count down from a big number to zero, the default behavior is - it eventually gets to single 0. ex - 200 to 0 But if by any chance the odometer element is hidden, it retain the number length. Ex - 200 to 000.

Here is jsfiddle, which might give you better understanding what I'm saying - http://jsfiddle.net/y2dp20aj/2/

My expected behavior is in both case ( whether if the element is visible or not ) it should go to a single zero.