Jump to content
Search Community

Making an individual object repeat animation straight away.

joelreed test
Moderator Tag

Go to solution Solved by PointC,

Recommended Posts

Hey, new to GSAP so still working it all out. As seen in my codepen, I have boxes flying across the screen which is what I want, but I want each individual box to repeat this animation as soon as it makes it to the end. Currently the code waits for every box to finish before repeating (all the boxes have random duration, so this means currently the faster boxes have to wait for the slower ones to finish before repeat). I'd like every box to just repeat as soon as it finishes its random duration. Any advice on this would be appreciated. Thanks!

 

See the Pen gORqpOK by joelreed (@joelreed) on CodePen

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...