Jump to content
Search Community

how use gsap to scroll "nicely" from the bottom of the document to the top

edmundsecho test
Moderator Tag

Go to solution Solved by PointC,

Recommended Posts

I have seem this webpage feature referred to as a "scroll to top button".  So, it's a button that appears once the user scrolls down the page.  To get the button to appear I'm using a scrollTrigger

 

The focus of this post is how to animate the page "scrolling to the top".  Is there a way to use gsap to do so?  I would use an easing function to provide a nice user experience.   As of now, using vanilla JS, it races to the top.

 

Thank you.

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