Jump to content


scrollTrigger 'callback' when elements align

Moderator Tag

Recommended Posts

Hi all, 


I was wondering if someone might be able to offer some help with a scrollTrigger setup I am looking to put together...

I would like to be able to know when one of the image blocks on the left comes inline with the pinned element on the right, so that I could do a visual effect on the lined up block, and then remove it and apply to the next block to lineup with the text.


Im not entirely sure how to go about his at the moment, my inital thought was to create a whole other scrolltrigger for each block but I doubt that is the way to do this...


any help much appreciated...


See the Pen OJXMQOL by jonsaul (@jonsaul) on CodePen

Link to comment
Share on other sites

@akapowl Amazing, thank you, Paul! This looks like just what I need.


Great stuff, Cheers! 

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.