When you start scrolling down, the scroll-to-top button will become visible. And when you click on that button, you will get back to the top before you know it! If you use this on a long page, the button will stay fixed to the bottom right and be visible all the time. It is something that can be very useful on long pages.
The scroll button is sitting in a .wrapper container, which has a min-height of 130vh. This is to make the page long enough to enable scrolling at all. You can tweak and style that container to your liking and put your page content inside it.
Scroll down!
When you start scrolling down, the scroll-to-top button will become visible. And when you click on that button, you will get back to the top before you know it! If you use this on a long page, the button will stay fixed to the bottom right and be visible all the time. It is something that can be very useful on long pages.
The scroll button is sitting in a .wrapper container, which has a min-height of 130vh. This is to make the page long enough to enable scrolling at all. You can tweak and style that container to your liking and put your page content inside it.