2.2.0 • Published 2 years ago

@inotom/smoothscroll v2.2.0

Weekly downloads
14
License
MIT
Repository
github
Last release
2 years ago

@inotom/smoothscroll

Smooth scrolling fragment links.

Demo

Demo

Install

npm

npm install -D @inotom/smoothscroll

Usage

Browser

<script src="smoothscroll.min.js"></script>
<script>
  SmoothScroll.smoothScroll();
</script>

ES module

import { smoothScroll } from '@inotom/smoothscroll';

window.addEventListener('load', () => {
  smoothScroll();
});

License

MIT

Author

inotom