skrollTop.js is a JavaScript smooth scrolling plugin that smoothly scrolls the page to a specific point within the document.
This library minimizes the code and still provides some great features like:
- Callback when done.
- You can optionally scroll to a different element of the window.
- Use different mitigations as jQuery UI has done in the past.
- Programmatically stop the animation.
How to make use of it:
Installation:
// With bower bower install skrolltop // With npm npm install skrolltop
The primary use would be:
skrollTop.scrollTo({ to: 800 });
Another example with all parameters would be as follows:
skrollTop.scrollTo({ element: window, to: 800, easing: window.easings.easeOutBounce, duration: 600, callback: function() { console.log("finished!"); } });
javascript smooth scroll with easing effect, skrollTop.js Plugin/Github
See Demo And Download
Official Website(alvarotrigo): Click Here
This superior jQuery/javascript plugin is developed by alvarotrigo. For extra advanced usage, please go to the official website.