react-spring: useChain does not work as expected for transitions

🐛 Bug Report

useChain does not chain animations correct, if Transition should animate after Spring.

To Reproduce

Spring first, than Transition -> does not work See https://codesandbox.io/s/wizardly-leaf-b4v5g?file=/src/App.tsx

Transition first, than Spring -> does work comment out line 38; comment in line 40

Expected behavior

Transition animation should run after Spring animation, not in sequence.

Environment

  • react-spring v9.1.2
  • react v17.0.1

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 19 (19 by maintainers)

Most upvoted comments

Yes correct!