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
Hi, I used react-pose for an animation demo and came across these problems:
Shuffling children leads to an out-of-order staggered exit transition for children
Specifying a "preEnterPose" removes the children's staggered enter animations completely.
The "preEnterPose" is only active the first time the parent element is animated in.
Most seriously, when re-animating the parent element in, DOM elements that do not correspond to anything in the props array are animated in (there should only be 8 cards in this image):
You should be able to reproduce by checking out the demo posted above, and my code is here
Did you try setting a state on the children items with the same "preEnterPose"?
I think this is by design? It's like ReactTransitionGroup's appear state - a way of setting an animation when the PoseGroup first appears rather than subsequent entries. Could probbly communicate this better, unless you mean something else.
I added a preEnterPose to the child PoseGroup and it is working exactly as expected. I guess I thought in this case the children would default to using the exit pose to preload values if no preEnterPose was specified.
You're right, it's totally working correctly.
Thanks for making this library, btw, it's really cool how it's both powerful and user-friendly.
Hi, I used react-pose for an animation demo and came across these problems:
You should be able to reproduce by checking out the demo posted above, and my code is here
In case it's helpful, an example demonstrating expected behavior is here
Hopefully these issues are a result of my own user error, if so, sorry for making an issue!
The text was updated successfully, but these errors were encountered: