The button scrolls first to H1 (if it is not, then it scrolls to the height of the screen), then it works like a scroll up.
-
Updated
Oct 11, 2020 - HTML
The button scrolls first to H1 (if it is not, then it scrolls to the height of the screen), then it works like a scroll up.
Scroll-to library with easy integration and perfect performance
Add a description, image, and links to the scrolltop topic page so that developers can more easily learn about it.
To associate your repository with the scrolltop topic, visit your repo's landing page and select "manage topics."