snapscroll

SnapScroll

Usage no npm install needed!

<script type="module">
  import snapscroll from 'https://cdn.skypack.dev/snapscroll';
</script>

README

SnapScroll

Installing

Install the package:

yarn install snapscroll

Import the plugin:

import SnapScroll from 'snapscroll';

SnapScroll('.snapscroll-element', options);

Available options:

{
    proximity: 100,
    duration: 200,
    easing: time => time,
    onSnapWait: 50,
}