jquery-smoothscroller
v1.1.2
Published
A jQuery plugin to provide a smooth scrolling effect.
Downloads
9
Maintainers
Readme
jQuery-smoothScroller
SmoothScroller is a simple jQuery plugin to add a smooth scrolling transition effect to your page. It is extremely small being under a 1KB in size. When initialized it will detect all the anchor tags with id references and create a smoothscroll animation to the relevant tag.
To add to your project:
$ npm i -S jquery-smoothscroller
Then add it to your page:
<script src="node_modules/jquery-smoothscroller/smoothScroller.min.js"></script>
To initialize:
$(window).smoothScroller();
The options availible are:
defaults = {
duration: 1000,
easing: "swing",
callback: function() {}
}