Jump to content
Search Community

ScrollSmoother reverse content (start bottom + end top)

Krause test
Moderator Tag

Recommended Posts

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

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

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