In this lesson React Spring's useSpring hook is used to animate CSS properties.
You will also learn how to use animated
to extend native elements to receive animated values.
This demo does not run!
Fixed now, Thomas. Thanks for catching that!
I tried isPaused
with useState + while (!isPaused)
. But the stop()
did not stop the spring animations.
How do I stop the animation and restart ?