Jump to content
Search Community

Kill scrolltrigger on Load / only scroll to section only if user is scrolling ( relating to Fullpage scrolling)

geogeo test
Moderator Tag

Recommended Posts

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

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

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