Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Juc1

Scrolltrigger timeline + forEach

Go to solution Solved by tailbreezy,

Recommended Posts

Hi all,

 

I want to say:

when image 1 enters the viewport, run the timeline on image 1

when image 2 enters the viewport, run the timeline on image 2

etc

 

But so far I am getting - when image 1 enters the viewport, run the timeline on all the images at the same time.

 

Can anyone please correct my pen?

 

Thanks... 

See the Pen PobjKPj by Juc1 (@Juc1) on CodePen

Link to post
Share on other sites

Just change your trigger and you are good to go. Also you will need some height/spacer at the end because you will not be able to reach the last trigger.

 

  trigger: item

 

  • Like 5
Link to post
Share on other sites

@tailbreezy is getting pretty quick with the answers. Maybe he'll be faster than Zach someday. ;)

  • Haha 2
Link to post
Share on other sites

awesome, thanks guys 👌

Link to post
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.

×