Jump to content
GreenSock

Delarge

Long page using ScrollTrigger and skipping past sections with anchor links

Recommended Posts

Firstly, apologies if this has already been asked, I tried to find previous posts but suspect I wasn't looking for quite the correct terms.

 

I have a loooong page using a mixture of regular ScrollTrigger animations + timelines - but I also have a fixed menu at the side that jumps you down to various anchor linked sections.

 

So if someone starts the page and clicks the link to #section-5, can I stop all the animations on the way from the top to bottom from firing?

 

Many thanks!

 

Link to comment
Share on other sites

please watch the video on fastScrollEnd and prevenOverlaps found at

 

 

There is a great demo there, but be sure to watch the video as it goes pretty deep into the details.

 

  • Like 2
Link to comment
Share on other sites

Thank you, Carl! Brilliant and very helpful video as always.

 

toggleActions: "play complete reset reset" is what I'm after in this instance (of course!), but great to know those other options are there.

  • Like 1
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.
×