smooth-scroll-page

A way too smoothly scroll through a web page with minimal effort

Usage no npm install needed!

<script type="module">
  import smoothScrollPage from 'https://cdn.skypack.dev/smooth-scroll-page';
</script>

README

Smooth-scroll-page

A way too smoothly scroll through a web page with minimal effort

Using

In order to use the package you have to:

  1. Download the index.js file
  2. Place it somewhere in your project directory
  3. Import it in your html file <script src="scroll.js"></script>
  4. Add another script tag/file with following code inside smoothScroll.init('sectionClassName', 'linkClassName') Where 1. sectionClassName has to equal name of the class all sections you want to scroll through have in common 2. linkClassName has to equal name of the class all anchor links to your scroll sections have in common(optional)