Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

README

        

scrollToTop
===========
A scrollToTop jQuery Plugin

How 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).