Skip to content

inotom/smoothscroll

Repository files navigation

@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

About

A JavaScript library to scroll a Web page smoothly.

Resources

License

Stars

Watchers

Forks

Packages

No packages published