You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use two useSpring hooks to animate two different elements. I want to execute the spring animations in sequence using useChain. The problem is that the second animation is being executed simultaneously with the first one. It doesn't wait the first one to end.
Which react-spring target are you using?
@react-spring/web
@react-spring/three
@react-spring/native
@react-spring/konva
@react-spring/zdog
What version of react-spring are you using?
9.7.3
What's Wrong?
I'm trying to use two
useSpring
hooks to animate two different elements. I want to execute the spring animations in sequence usinguseChain
. The problem is that the second animation is being executed simultaneously with the first one. It doesn't wait the first one to end.To Reproduce
Open codesandbox and the black square together with the one in movement will start together.
Expected Behaviour
To execute the animations in sequence
Link to repo
https://codesandbox.io/s/react-spring-async-animation-bug-6g66wt?file=/App.js
The text was updated successfully, but these errors were encountered: