98
Views
2
Comments
Solved
Hide the "back to top" button when the page haven't scroll up to scroll

Hello,


I implemented a button to improve the user experience on the reactive page which i implement the following JS

But, now, when the user is on the top of the page I would like to hide smoothly the button to avoid the user continues clicking on the button when he are on the top of the page.

How can I do that?


UserImage.jpg
Pedro Ricarte

Thnaks for the quick help. It works

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.