How to toggle smoothly between a infinite amimation and a stopped animation #2379
Unanswered
carstenheisterkamp
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
-
I am trying to animate a continuous animation of a SVG in a react component for a muted and not muted audio. I want to toggle between the animated state and not animated (paused / minimized ) variant, if audio is allowed / not allowed. The animation should smoothly do a transition between the two states.
I am currently using variants for the individual paths but already tried to use animation controls and whatnot. But either I can only achieve an abrupt change between the two states or like in the below example the animation does not stop at all.
I am not sure what I am missing and how to achieve a smooth transition betweeen a Infinite Animation and a stopped Animtion, with all three paths in the minimized state. Any help appreciated! Sandox of the below code
Beta Was this translation helpful? Give feedback.
All reactions