jquery.smoothscroll.js
1.0.6 • Public • Published jquery.smoothscroll.js
![license](https://img.shields.io/github/license/ixkaito/jquery.smoothscroll.js.svg?maxAge=2592000&style=flat-square)
jQuery plugin to animate scrolling to anchor links
Downloading or installing via npm
![ZIP](https://img.shields.io/badge/download-tar.gz-orange.svg?longCache=true&style=for-the-badge)
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
Package Sidebar
Install
npm i jquery.smoothscroll.js
Weekly Downloads