スムーススクロールでページ内移動するためのプラグイン。
JavaScript HTML
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src The offset parameter supports functions Apr 27, 2018
.editorconfig
.gitignore Refactoring Apr 21, 2017
.npmignore
LICENSE
README.md
gulpfile.js Refactoring Apr 21, 2017
package.json The offset parameter supports functions Apr 27, 2018
readme.md Update readme Apr 21, 2017
yarn.lock Refactoring Apr 21, 2017

README.md

jquery.smoothscroll

Get started

Install

$ yarn add jquery.smoothscroll

Load scripts

<script src="https://code.jquery.com/jquery-1.12.0.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script>
<script src="/node_modules/jquery.smoothscroll/dist/jquery.smoothscroll.min.js"></script>

Setting

<script>
jQuery(function($) {
  $('a[href^="#"]').SmoothScroll({
    duration: 1000,
    easing  : 'easeOutQuint'
  });
});
</script>

License

MIT