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,
}