Minimal jQuery Animated Scroll To Plugin
File Size: | 11 KB |
---|---|
Views Total: | 1280 |
Last Update: | |
Publish Date: | |
Official Website: | Go to website |
License: | MIT |

Just another lightweight jQuery scroll to plugin that allows you to scroll to any part of the page with a smooth scroll animation. Also can be used together with jQuery easing plugin for amazing easing animations.
How to use it:
1. Add an anchor link pointing to the target position you would like to scroll to.
<a href="#demo"> Click me </a> <p id="demo"> Target content </p>
2. Include the jQuery library together with jQuery Animate Scroll To and jQuery easing plugin (optional) in the Html document.
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script> <script src="jquery-scroll-to.js"></script>
3. Initialize the plugin with one line of javascript.
scroll.animateAll({ animateAll: true });
4. All the optional settings.
scroll.animateAll({ easing: 'swing', duration: 1000, offset: 0, animateAll: false });
This awesome jQuery plugin is developed by tongjieme. For more Advanced Usages, please check the demo page or visit the official website.