jquery-smoothscroller

1.1.2 • Public • Published

jQuery-smoothScroller

NPM

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() {}
}

Package Sidebar

Install

npm i jquery-smoothscroller

Weekly Downloads

3

Version

1.1.2

License

MIT

Last publish

Collaborators

  • tidupls