jQuery to Top() – Smooth Scrolling Light-Weight
jQuery to Top() is a simple and light weight plugin for smooth scrolling
File Size : 5.8 KB
Key Features :
* Very Simple and super friendly plugin
* Very light-weight, minified version is sized less than 1KB
* You can use any html elements, and style as you want
How to Use :
Step 1
Include jquery script
<script src=”http://code.jquery.com/jquery-1.11.3.min.js”></script>
<script src=”jquery.toTop.min.js”></script>
Step 2
Include HTML
<a class=”to-top”>Top ↑</a>
Step 3
Plugin Activation
$(‘.to-top’).toTop();
Plugin Activation with Options
$(‘.to-top’).toTop({
autohide: true,
offset: 420,
speed: 500,
position: true,
right: 15,
bottom: 30
});