TAAT
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by TAAT
-
-
I have a simple animation -
1. Lines get highlighted one after the other on click on a button.
2. Clicking on button again, while the animation is running, should de-highlight the lines to original state.
However, on setting the timeline progress of animation to 0, all the values get reset, but the last one modified continues to remain in same state.
To reproduce, click the button, and after a couple lines have highlighted, click the button again.
Code Sandbox : https://codesandbox.io/s/inspiring-gates-poozb
Resetting an animation in React is not setting to inital state
in GSAP
Posted
Thanks, I did try setting the Highlights manually and typecasting the boolean values, but didn't give the expected behavior.
I have realized that on updating the react-dom version, it does behave the way it is expected. I have raised an issue with React as well : https://github.com/facebook/react/issues/17112
In case someone has some insights, please do let know.