Jump to content
GreenSock

pixelarchitect

stagger not working in forEach / fromTo

Recommended Posts

The stagger isn't working because you're targeting each box individually. So you end up staggering one target. You'd also need to move the stagger property outside of the scrollTrigger object.

 

I think you may actually be looking for the batch() method.

https://greensock.com/docs/v3/Plugins/ScrollTrigger/static.batch()

 

Happy tweening.

:)

 

  • Like 4
Link to comment
Share on other sites

stagger inside of scrollTrigger was indeed a mistake and was for testing purposes, should have taken that one out! :) Thanks for enlightening me on batch, that definitely helped and it's working now!
 

  • Like 2
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.
×