Jump to content
Search Community

Scroll pin animation

Romanus test
Moderator Tag

Recommended Posts

Are you saying you want the red block to remain stationary and the green one slides UNDER it (so you never see the green)? That seems odd. Or maybe you want to stack it on TOP of the red section? Sorry, I'm having a hard time understanding your goal. If you don't want ScrollTrigger to add spacing to adjust for the pinning, just set pinSpacing: false. 

 

I'm just gonna guess that this might be what you wanted?: 

See the Pen QWxxLBZ?editors=1010 by GreenSock (@GreenSock) on CodePen

  • 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.
×
×
  • Create New...