Share Posted October 6, 2022 Hi, I'm in the process of building a website where on /work, the user will start scrolling from the bottom of smooth-content(main, in codepen example) I'm using scroolSmoother alongside other GSAP libraries. Guess the code is quite simple—but I'm new to this. I would wanna think that I need to do some kind of "scroll-to-end-of-smooth-content" thing. Not really sure. Looking forward to hearing from you Thanks a lot! See the Pen VwxGrwq by asgerkrause (@asgerkrause) on CodePen Link to comment Share on other sites More sharing options...
Share Posted October 7, 2022 Are you saying that you want the page to start as if it is scrolled all the way to the bottom, and then when the user scrolls "down", it actually acts like it's scrolling in the complete opposite direction? Or are you just asking how to make it scroll from the bottom to the top of the page? If that's what you want, there's a .scrollTo() method on ScrollSmoother 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