Vanilla JavaScript Back To Top Button Plugin – Vanillatop

Category: Javascript | February 24, 2019
Author: bernydole
Views Total: 682
Official Page: Go to website
Last Update: February 24, 2019
License: MIT

Preview:

Vanilla JavaScript Back To Top Button Plugin – Vanillatop

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:

02/24/2019

  • v1.0.3

You Might Be Interested In:


Leave a Reply