Jump to content
Search Community

ScrollTrigger Horizontaly after redirecting

Alan Senderovich test
Moderator Tag

Go to solution Solved by mvaneijgen,

Recommended Posts

Hello!
I can't find a way so that once the button redirects to section 2, the scroll continues to have its usual behavior.
What happens right now is that after the redirect, scrollUp no longer works, and scrollDown takes me back to section 1. I need to be able to continue scrolling normally up and down from section 2.

Thanks a lot for your time!!
I will be attentive to the comments and I thank you in advance!

See the Pen rNoqGbp by Alan-Senderovich-the-vuer (@Alan-Senderovich-the-vuer) on CodePen

Link to comment
Share on other sites

  • Solution

Hi @Alan Senderovich welcome to the forum!

 

If I understand you correctly, you want to scroll to a specific point on the page? That sounds to me the perfect use case for the ScrollToPlugin! https://greensock.com/docs/v3/Plugins/ScrollToPlugin 

 

I don't know what sectionX does, but I've used it as the value to scroll to. You could of course use any value you like, you just have to find the one that suits your project. Hope it helps and happy tweening! 

 

See the Pen NWeOwrd?editors=0010 by mvaneijgen (@mvaneijgen) on CodePen

  • Like 2
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...