Simple jQuery Scroll To Top Plugin
File Size: | 10.1KB |
---|---|
Views Total: | 13074 |
Last Update: | |
Publish Date: | |
Official Website: | Go to website |
License: | MIT |
A simple jQuery based back to top plugin that displays a clickable scroll to top button on the bottom of your page when scroll down, with smooth scrolling effect. You can change the scroll speed value via javascript.
You might also like:
- Simple Back To Top Link
- Smooth Page Scroll to Top with jQuery
- Lightweight Animated Scroll To Top Plugin - scrollUp
- Imageless Top of The Page Plugin For jQuery - iTopPage
- Beautiful Back-To-Top Button
How to use it
1. Download and add the latest jQuery library and jquery.scrollToTop.min.js to the head section of your page
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script src="jquery.scrollToTop.min.js"></script>
2. Add the following html codes on the anywhere of your page
<a href="#top" id="toTop"></a>
3. Call the plugin with options
<script type="text/javascript"> $(function() { $("#toTop").scrollToTop(1000); }); </script>
This awesome jQuery plugin is developed by geniuscarrier. For more Advanced Usages, please check the demo page or visit the official website.