HubSpot / odometer

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

Formatting function messes up animation and start-middle-end states don't have the same format #104

Open zinkkrysty opened 9 years ago

zinkkrysty commented 9 years ago

The new formatting function added in https://github.com/HubSpot/odometer/pull/55 is not working properly. The animation shows a completely different format/style than the end result is:

http://jsfiddle.net/uzekzof7/1/

During animation:

image

After animation:

image

Also, there should be tests for such new functionality.

adamschwartz commented 9 years ago

Please see https://github.com/HubSpot/odometer/issues/106 for a workaround.