-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Count down is slower than count up when end is 0 #287
Comments
After some debugging, I found there's an issue with So what's happening is the first half is half the set duration, but the second half is full duration meaning the animation is 150% as long as it should be. I will work on a fix. |
* log animation duration * small improvements * fix the bug (#287) * fix issue in determineDirectionAndSmartEasing * clean up * build
Fixed in v2.3.2 |
Description
When the value goes from 0 to 7240 the duration is respected
When the value goes from 7240 to 0 the animation seems longer
When the value goes from 7240 to 1 the duration is respected
You can easily try in home page
Start
0
, end7240
, duration5
, the duration is really 5 secondsStart
7240
, end0
, duration5
, the actual duration seems more 7s (40% longer)Start
7240
, end1
, duration5
, the duration is really 5 secondshttps://inorganik.github.io/countUp.js/
I can also view this difference in my production app with lower duration (0.5s when going up is 0.7s when going down) which makes my animations not synced.
The text was updated successfully, but these errors were encountered: