Author: | bernydole |
---|---|
Views Total: | 732 views |
Official Page: | Go to website |
Last Update: | September 8, 2021 |
License: | MIT |
Preview:

Description:
The Vanillatop plugin helps you create an auto show/hide back to button on the webpage.
Clicking the button will smoothly scroll the webpage to the top using the requestAnimationFrame() method.
How to use it:
Installation:
# NPM $ npm install vanillatop --save
Link to the necessary JS and CSS files.
<link rel="stylesheet" href="vanillatop.min.css"> <script src="vanillatop.min.js"></script>
Create a link for the back to top button. Done
<a href="#" class="vanillatop"></a>
Changelog:
09/08/2021
- v1.0.5: Fast scrolling
02/24/2019
- v1.0.3