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

How do I tell Odometer to just animate the string without truncating or following a format? #170

Open FreezePhoenix opened 5 years ago

FreezePhoenix commented 5 years ago

I need to run multiple odometers with the same theme but different formats. I can't make a manual check, as they are dynamically created. (The other issue is performance, of course, I'll ask about that later in this post). So I have multiple odometers, some of which I want to be percents, and some of which I want to be rounded numbers, and some of which I want to be decimals.

The second issue is performance. I will have on average 28 odometers running (You can check them out here: https://lowlimeoop-1.freezephoenix.repl.co/). This often causes spurts of lag when running on a only slightly outdated machine.

FreezePhoenix commented 5 years ago

One other complaint: It doesn't continue scrolling even after it's reassigned, especially if to the same value. In this case, it should continue scrolling. In the case where it isn't the same value, it should scroll from where it is instead of where it was headed.