[bug]: useChain with multiple useSpring hooks not respecting the animation order #2198
Open
1 of 5 tasks
Labels
template: bug
This issue might be a bug
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: