Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/geniuscarrier/scrollToTop
One click to scroll back to the top of the webpage.
https://github.com/geniuscarrier/scrollToTop
Last synced: 3 months ago
JSON representation
One click to scroll back to the top of the webpage.
- Host: GitHub
- URL: https://github.com/geniuscarrier/scrollToTop
- Owner: geniuscarrier
- Created: 2013-03-15T22:23:52.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-28T20:38:15.000Z (over 9 years ago)
- Last Synced: 2024-07-05T22:51:04.976Z (4 months ago)
- Language: JavaScript
- Homepage: http://geniuscarrier.com/scrolltotop-a-jquery-plugin/
- Size: 136 KB
- Stars: 79
- Watchers: 7
- Forks: 29
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
scrollToTop
===========
A scrollToTop jQuery PluginHow to use:
-------------------------1. Include necessary JS files
```
```2. Add scrollToTop CSS file
```
```3. Create a link element
4. Fire plugin using jQuery selector
```
$(function() {
$("#toTop").scrollToTop();
});
```5. Option: pass in a number to control scroll speed. Default: 800.
```
$(function() {
$("#toTop").scrollToTop(1000);
});
```Compatibility:
-------------------------* IE7 and above, Firefox, Chrome, Safari and Opera
Live Demo:
-------------------------* [Homepage](http://geniuscarrier.com)
* [Demo](http://geniuscarrier.com/scrolltotop-a-jquery-plugin/)License:
-------------------------
Released under the [MIT license](http://opensource.org/licenses/MIT).