@burst/smoothscroll
Add smoothscroll to the site.
Installation
npm i @burst/smoothscroll --save-dev
Usage
import { smoothScroll } from '@burst/smoothscroll';
smoothScroll.init();
width OPTIONAL parameters.
smoothStrength: number (strenght of the smoothing, if not defined defefault is used.)
wrapper: string (element of the wrapper, if not defined
element is used in the page.)
wrapperEl: a html element
smoothScroll.init({ smoothStrength: 0.2, wrapper: '.js-wrapper' });
Disable
smoothScroll.disable();
enable
smoothScroll.enable();