Mohamedgad Posted May 22, 2021 Share Posted May 22, 2021 Hello, I used forEach to apply animation on multiple divs with same class, I just want to add stagger between them, I tried on the tweens it self but it didn't work, I have no clue where should it applied, probably there is easy solution's , sorry I'm a beginner. Thanks in advance. See the Pen RwppZjV by Mohamed-Gad (@Mohamed-Gad) on CodePen Link to comment Share on other sites More sharing options...
Cassie Posted May 22, 2021 Share Posted May 22, 2021 I would probably skip the forEach function and do it like this - See the Pen a0d4b82b993eb83cf8cbec32325ef7f5 by cassie-codes (@cassie-codes) on CodePen But you could also apply a delay or position parameter based on the index value of the loop See the Pen fbd45d7822bf94cb99f9a31d002d2e15 by cassie-codes (@cassie-codes) on CodePen 6 1 Link to comment Share on other sites More sharing options...
Mohamedgad Posted May 22, 2021 Author Share Posted May 22, 2021 Thanks Cassie For your Help, I appreciate it.😍 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