Animation does not work on value update
Closed this issue · 2 comments
vydimitrov commented
Hey, the animation does not start over because it was completed for the requested duration. If you want to make it start again when changing the start and end value you will need to pass a new key
prop to the component. You can do something like this:
key={`${start}-${end}`}
Also it seems that this demo is using the old version of the component. I'd recommend using the latest version.
vydimitrov commented
I am closing this bug. Let me know if you have any further questions.