Skip to content

D-ominik/jquery.smoothscroll.js

 
 

Repository files navigation

jquery.smoothscroll.js

jQuery plugin to animate scrolling to anchor links

Download or install via npm

jquery.smoothscroll.js

or

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

Include jquery.smoothscroll.js on your site

<script src="jquery.min.js"></script>
<script src="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,
});

Copyright

Kite @ixkaito

License

MIT

About

jQuery plugin to animate scrolling to anchor links

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%