Skip to content

Latest commit

 

History

History
49 lines (28 loc) · 499 Bytes

README.md

File metadata and controls

49 lines (28 loc) · 499 Bytes

@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