Skip to content

Count down is slower than count up when end is 0 #287

Closed
@ryancrunchi

Description

@ryancrunchi
[x] Bug
[ ] Feature request

CountUp.js version: 2.3.1

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, end 7240, duration 5, the duration is really 5 seconds
Start 7240, end 0, duration 5, the actual duration seems more 7s (40% longer)
Start 7240, end 1, duration 5, the duration is really 5 seconds
https://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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions