Jump to content
Search Community

ScrollTrigger in overflow container

MouleAGauffre test
Moderator Tag

Go to solution Solved by MouleAGauffre,

Recommended Posts

Hello everyone ! 

I am having his issue of needing to animate elements that are within an overflow container. As you can see here by default, it seems GSAP doesn't pick up the positions of the container being scrolled thus the scrolltrigger never gets activated. 

The behaviour I'm looking after is that when the first blue square hits the top, the animation gets triggered. Right now, I need to scroll all the way down and then somehow scrolling some more gets the markers moving and triggers the animation (I'm thinking this is due to the pinspacer). 

If you'd have any thought on how to get around this/ info on the inner workings,  it would be highly appreciated. 

Thanks a lot for any help you can provide

See the Pen vYvVmLa by Typhainethegales (@Typhainethegales) on CodePen

Link to comment
Share on other sites

  • 6 months later...

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...