Jean Polkin Posted September 29, 2022 Share Posted September 29, 2022 Hi everyones, I'm Trying to display randomly those DragTiles by data values and staggered them but i'm quite lost and i was struggled for hours. I tried several methods like flip, random(), shuffle() without success. Could you just give me a hint so I can achieve this. It's a simple little animation and yet I can't do it. Thank's a lot for your precious help See the Pen poVaONE?editors=1111 by JPolkin (@JPolkin) on CodePen Link to comment Share on other sites More sharing options...
GreenSock Posted September 29, 2022 Share Posted September 29, 2022 Are you asking how to take the blue ones and re-order them randomly? Or are you asking about a stagger animation (like maybe animating them onto the screen)? Sorry, I'm a bit lost about what exactly you're asking here from a GSAP perspective. Link to comment Share on other sites More sharing options...
Jean Polkin Posted September 29, 2022 Author Share Posted September 29, 2022 Sorry yes i want to re-order the blue ones randomly but I thought we should create an animation for the re ordered. Link to comment Share on other sites More sharing options...
GreenSock Posted September 29, 2022 Share Posted September 29, 2022 I whipped together a shuffle function for you that uses Flip and staggers things: See the Pen VwxXKPB?editors=0010 by GreenSock (@GreenSock) on CodePen I hope that helps. 1 Link to comment Share on other sites More sharing options...
Jean Polkin Posted September 29, 2022 Author Share Posted September 29, 2022 ohh yess! great!! i'm really greatful!! 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now