play animation once, clampWhenFinished, then play in reverse on useEffect cleanup? #1874
Unanswered
ashleymvanduzer
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey all,
I found this explanation that seems to sum up the settings necessary to do exactly this, but I can't seem to get an animation to play in reverse by setting the timeScale on the animation to -1, followed by unpausing the animation, in the cleanup of the useEffect that initially triggers the animation.
Does anyone have any pointers on how to accomplish this? seems fairly straightforward, any advice would be greatly appreciated
Beta Was this translation helpful? Give feedback.
All reactions