Currently, the scroll to top button is at the bottom of the page, and we have to add ScrollToTop Component on every page separately.
Like this:
There can be a FAB(Floating Action Button) at the right bottom side of the screen, which is activated whenever the screen scroll is greater than some value, say 400.
Like this:
if (window.pageYOffset > 400) {
...
}
And I can implement it in such a way that we do not need to separately include on each and every page.
Currently, the scroll to top button is at the bottom of the page, and we have to add ScrollToTop Component on every page separately. Like this:![image](https://user-images.githubusercontent.com/57860123/115421053-462a6e00-a219-11eb-8aac-906974826eb4.png)
There can be a FAB(Floating Action Button) at the right bottom side of the screen, which is activated whenever the screen scroll is greater than some value, say 400. Like this:
And I can implement it in such a way that we do not need to separately include on each and every page.