Replies: 5 comments 5 replies
-
Hi @ottotsuma, if you're able to provide a codesandbox I can take a look for you and offer some advice 👍🏼 |
Beta Was this translation helpful? Give feedback.
-
Mmm, this technically works although I am sure is not the idea of react-spring. I added delays of 175 between each animation and put them into an array. Really just taking it back to V8.
|
Beta Was this translation helpful? Give feedback.
-
This might help narrow it down. When I changed from using '0' by itself to '%' the animation stopped working entirely.
However in another file the animation ...
Required the px added to the end of the '0's to be able to Don't get me wrong though I love using this package, I really prefer using mass, tension and friction to duration. |
Beta Was this translation helpful? Give feedback.
-
@ottotsuma @joshuaellis i tried using older react-spring version(V8.0.27) as well, it works same as current versions. |
Beta Was this translation helpful? Give feedback.
-
@ottotsuma Hi! Did you find any solution to this "issue"? I was trying to accomplish the same thing but without any luck :/ Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hey all,
I am trying to move to react-spring V9 from V8.
So in Spring V8 I use to do:
bottomTransition.reverse()
To get the animations to play in the reverse order do cards [1 ~ 5] would come out in the order 5, 4, 3, 2, 1. Under react-spring V9 I can no longer just .reverse() the reply because it's now a function call. So [1 ~ 5] becomes 1, 2, 3, 4, 5.
I tried the sort method found: https://react-spring.io/hooks/use-transition#sort
However this just reverses the order of the cards in the deck not the order they come out. So [1 ~ 5] becomes [5 ~ 1] but now they come out 5, 4, 3, 2, 1 instead of 1, 2, 3, 4, 5.
I just want the animation order to be reversed.
Beta Was this translation helpful? Give feedback.
All reactions