Romanus Posted November 26, 2022 Share Posted November 26, 2022 Hello! I'm trying to pin section 1 so that section 2 moves up while the first one doesn't move. I tried Pin, but I ended up making the scrollbar bigger. While the first section does not move, the second does the same. How to achieve the desired result? See the Pen poKVMJR by romanusss (@romanusss) on CodePen Link to comment Share on other sites More sharing options...
GreenSock Posted November 26, 2022 Share Posted November 26, 2022 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 2 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now