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