Red Bag Posted February 4, 2021 Share Posted February 4, 2021 Anyone using the example to add a button like "scroll down" to next section, but this is the horizontal scroll website, so do any idea to do a button scroll to next section and when till the end section have a button to scroll back to first section. See the Pen b375e7e4071b7ae285777cda4fd08f76 by GreenSock (@GreenSock) on CodePen Link to comment Share on other sites More sharing options...
GreenSock Posted February 4, 2021 Share Posted February 4, 2021 Perhaps this will help?: See the Pen xxEQNBB by GreenSock (@GreenSock) on CodePen 1 Link to comment Share on other sites More sharing options...
Red Bag Posted February 4, 2021 Author Share Posted February 4, 2021 I saw this tutorial also, but it can't to specific to detect anchor id. I did modified others related tutorial, but failed to do the scroll to next. Link to comment Share on other sites More sharing options...
ZachSaucier Posted February 4, 2021 Share Posted February 4, 2021 9 hours ago, Red Bag said: any idea to do a button scroll to next section To be clear, you're wanting a button that scroll to the next section no matter what the current section is? How should the current section be determined? If any part of it is on screen? If it's covering most of the screen? Something else? 9 hours ago, Red Bag said: button to scroll back to first section Easy, just animate to a scroll position of 0. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now