Smooth Scroll To Top Button jQuery Plugin – Scrolls.js

Smooth Scroll To Top Button jQuery Plugin – Scrolls.js
Do you want to add scroll to top button on your website and looking for Smooth Scroll To Top jQuery Plugin. Then in this post I am going to share simple jQuery plugin name Scroll.js which enables you to scroll smoothly to the top of any web page. Just few lines of code you can integrate this plugin on your website and your website visitor now have new feature during reading you website article at any time your visitor can click scroll to top button to reach top of the page.
Scroll To Top Button jQuery Plugin


Integrate Scroll To Top Button On Your Web Page.

Libraries

Include required libraries on page to enable scroll to top feature on your website.

<script src="//code.jquery.com/jquery-latest.min.js"></script>
<script src='scrolls.js'></script>

JS

Now Just initialize the plugin on DOM load and the plugins will do the rest.

$(function() {   
 scroller.init();
});




If you wish to change the color of the scroller, simply create an object called conf and place it anywhere above the scroller.init() code. Like so.

$(function() {   
  var conf = {
	bgColor: "#4F8EF2", 
	hoverColor: "#4EB441",
	opacity: 0.5
  };
  scroller.init();
});

See live demo and download source code.

DEMO | DOWNLOAD

Visit official github repository for more information and follow for future updates. Don’t forget to read license for using this plugin in your projects.