Skip to content

soundspawn/ScrollUpToTop

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • HTML 73.8%
  • JavaScript 19.6%
  • CSS 6.6%