@burst/smoothscroll
v1.1.0
Published
Add smoothscroll to the site.
Downloads
5
Keywords
Readme
@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();