Share Posted March 30, 2022 I have a section with the height of 100vh and pin it as follows: ScrollTrigger.create({ trigger: ".styleselectcontainer", start: "top top", pin: true, pinSpacing:false, }); Directly after that follows the next section with normal scrolling. How can I control that this section does not scroll directly above the pinned section when the pin fires? I want to achieve that the user has to scroll/swipe a little bit until the second section starts scrolling. Link to comment Share on other sites More sharing options...
Solution Solution Share Posted March 30, 2022 Hey, Welcome to the forum! It is recommended to create minimal demo of the problem. here is sample pen adjust the end value for how much you wanna let user scroll the first section. See the Pen d2f8c413883bab0a26134845e337fe10?editors=1010 by tripti1410 (@tripti1410) on CodePen 3 Link to comment Share on other sites More sharing options...
Author Share Posted March 30, 2022 Perfect, that's what I was looking for! Thanks for the quick help! 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