1.0.6 • Published 5 years ago

jquery.smoothscroll.js v1.0.6

Weekly downloads
9
License
MIT
Repository
github
Last release
5 years ago

jquery.smoothscroll.js

GitHub release npm license

jQuery plugin to animate scrolling to anchor links

Downloading or installing via npm

ZIP ZIP

or

$ npm install --save-prod jquery.smoothscroll.js

Loading jQuery and jquery.smoothscroll.js

<script src="https://code.jquery.com/jquery.min.js"></script>
<script src="/path/to/jquery.smoothscroll.min.js"></script>

Webpack or Browserify

global.$ = global.jQuery = require('jquery');
require('jquery.smoothscroll.js');

Usage

$(function() {
  $('a[href*="#"]').smoothscroll();
});

Options and Settings

$('a[href*="#"]').smoothscroll({
  duration: 400,
  easing: 'swing',
  offset: 0,
  hash: true,
  focus: true,
});

Copyright

Kite @ixkaito

License

MIT

1.0.6

5 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.1.0

7 years ago