stagger animation with useTransitions #1939
              
                Unanswered
              
          
                  
                    
                      bessim-dev
                    
                  
                
                  asked this question in
                Support
              
            Replies: 0 comments
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
hey, i hope everyone is well. so i had an animation that i wanted to build on my personal website. basically, it's a stagger animation, in fact, there is a similar example in the docs https://codesandbox.io/s/github/pmndrs/react-spring/tree/master/demo/src/sandboxes/trail. that example use useTrail which take an array of react children to it. i want to do the same thing just replacing it with the useTransition hook, it really gives me a hard time and i think it's cause if the array, i guess i doesn't accept it the same way useTrail do.
ps: i want to do this cause I'm planning to change the children's array on specific actions in my website so i want that they animate in and out every time i do that. if there is a better way than useTransition pls tell me
Beta Was this translation helpful? Give feedback.
All reactions