Smoothly Scroll Body With Animation - jQuery smoothScroll
File Size: | 4.71 KB |
---|---|
Views Total: | 3900 |
Last Update: | |
Publish Date: | |
Official Website: | Go to website |
License: | MIT |

smoothScroll is a lightweight jQuery plugin which enables your users to smoothly scroll the whole webpage with configurable animations.
How to use it:
1. Include the main JavaScript file smoothScroll.js
after jQuery library as this:
<script src="//code.jquery.com/jquery-3.1.1.min.js"></script> <script src="smoothScroll.js"></script>
2. Just call the function on the body and the plugin will do the rest.
$('body').smoothScroll();
3. Config the scrolling animation when you navigate through webpage via mouse wheel.
$('body').smoothScroll({ speed: 600, stepAmount: 300, });
This awesome jQuery plugin is developed by maab16. For more Advanced Usages, please check the demo page or visit the official website.