Jump to content
Search Community

ScrollTo and ScrollTrigger conflicting each other.

Bimal Pandey test
Moderator Tag

Recommended Posts

I forked one of the scrollto plugin's codepen from the docs, I have the exact same setup with few navigation buttons and I used scrollToPlugin to smoothly scroll to the clicked section. I also have an indicator to show which section I'm in and when the users scroll, the indicator accurately shows where the users is in the navigation buttons, I used scrollTrigger to do that but I couldn't make it work in the codepen so I commented out the registerPluin(ScrollTrigger) line but the scrollTrigger code below shows how it should be working. This makes everything jittery as when scrollToPlugin is scrolling to the specific section, scrollTrigger also triggers its own animation. Is there any way to skip scrollTrigger's animation while scrollToPlugin's animation is playing?

See the Pen LYOoRmP by bimalpandeycode (@bimalpandeycode) on CodePen

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