-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
kind: bugSomething isn't workingSomething isn't workingreleasedThis has been released on stableThis has been released on stablereleased in betathis has been released on a betathis has been released on a beta
Milestone
Description
🐛 Bug Report
I am trying to chain two animations so they should work in sequence, however, they're happening at the same time. The first animation is using animation configuration, while another - only duration.
To Reproduce
Steps to reproduce the behavior:
- create some UI stuff...for example expanding box and elements appearing inside
- create useSpring
- create useTransition
- use config.stiff or any other in useSpring
- use duration in config for useTransition
- make refs for both animations
- chain animations like so: isVisible ? [springRef, transitionRef] : [transitionRef, springRef]
Expected behavior
useChain successfully orchestrates useSpring and useTransition and knows how to handle animations with different configurations, i.e. when useSpring ens, useTransition starts and vice versa.
Link to repro (highly encouraged)
Here bug is visible when toggling reverse animation...when a box is hiding its content.
Environment
react-spring
v9.2.3react
v17.0.1
Metadata
Metadata
Assignees
Labels
kind: bugSomething isn't workingSomething isn't workingreleasedThis has been released on stableThis has been released on stablereleased in betathis has been released on a betathis has been released on a beta