smus Posted June 28, 2017 Share Posted June 28, 2017 How to add smoothness to 'Back to top' scroll using classic JS (without jQuery)? Link to comment Share on other sites More sharing options...
justsomeguy Posted June 28, 2017 Share Posted June 28, 2017 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 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