🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

Just another jQuery plugin that inserts an auto- fade in/out scroll up to top button into the body when you scroll down the window.

scroll-to-top

Documentation

ScrollUpToTop

A jQuery plugin to scroll up to top of webpage in one click.

Installation

Include jQuery and jquery.scrolluptotop.min.js:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> <script src="dist/js/jquery.scrooluptotop.min.js"></script>

Include too the stylesheet jquery.scrolluptotop.min.css

<link rel="stylesheet" href="dist/css/jquery.scrolluptotop.min.css">

Bower users can get the source with:

bower install scroll_up_to_top --save

Basic usage

After includes, use:

<script>     (function($){         $.ScrollUpToTop({"speedUp":1500});     })(jQuery); </script>```  Options ------- * speedUp : speed used to scroll up to top

You May Also Like