geogeo Posted October 29, 2020 Share Posted October 29, 2020 Hi there, I've used the below forum to create a fullpage scroll effect. However, i've found that unless the first section (the header) is height: 100vh, then as soon as you load the page the you're scrolled down to the next section because the "scroller-start" is already past the "start" position of the scrollTrigger. Is there a way to kill the scrollTrigger on load and only scroll when a user is scrolling? Please see attached codepen demo Many thanks in advance Georgia See the Pen yLJvWEr by georgiac44 (@georgiac44) on CodePen Link to comment Share on other sites More sharing options...
ZachSaucier Posted October 29, 2020 Share Posted October 29, 2020 Hey Georgia. I think you are looking for something like this? See the Pen XWKErqW?editors=0010 by GreenSock (@GreenSock) on CodePen Link to comment Share on other sites More sharing options...
geogeo Posted October 29, 2020 Author Share Posted October 29, 2020 Hi Zach, Thanks so much for the reply, that's definitely more of the right idea, but when the user starts scrolling you're not snapped to the first section. But then the scrollto kicks in for the second section onwards. Any ideas? Many thanks again! Georgia Link to comment Share on other sites More sharing options...
ZachSaucier Posted October 29, 2020 Share Posted October 29, 2020 Another option is to change the start position for the first ScrollTrigger: See the Pen mdExyPN?editors=0010 by GreenSock (@GreenSock) on CodePen 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