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 can I change the total animation duration? #142

Open blagodatov opened 7 years ago

blagodatov commented 7 years ago

I need to shorten the overall animation time. By alternating the parameters like DURATION, FRAMES_PER_VALUE I succeeded to change the 'speed' of rotation etc, but the overall duration remains constant. Please, suggest the solution! My counter: http://pizzaotto.ru/pizza-count-async/

blagodatov commented 7 years ago

well, I found this discussion https://github.com/HubSpot/odometer/issues/91 and succeeded to change my counter. the trick is, you need to set duration in multiple places, in your php, js, and css.