Jump to content
Search Community

Issues with Scrolling past a section with Observer using ScrollToPlugin on Button click

kbatchu test
Moderator Tag

Go to solution Solved by kbatchu,

Recommended Posts

Hello,

 

When I use the ScrollToPlugin to scroll, on a Button (Navigation buttons) click event, to a section (Section3) past another section (Section2) that uses an Observer , it scrolls to Section3 as expected but then jumps back to Section2. How do I make sure that when the Navigation button is clicked, it scrolls to the correct panel but still activate the Observer actions on Section2, when using the mouse wheel or touch.

 

The Observer is used to loop through the text elements i.e. txt1, txt2....txt4.

 

PS: The Navigation button events are at the bottom of the JS code.

 

Thanks,

See the Pen RwONaBZ by kbatchu (@kbatchu) 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...