Jump to content

How to add smoothness to 'Back to top' scroll


smus

Recommended Posts

Like with any other animation, you make many small changes.  With modern Javascript you would typically use requestAnimationFrame to handle the animation instead of the older setTimeout or setInterval.

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
×
×
  • Create New...