1.1.0 • Published 3 years ago

@burst/smoothscroll v1.1.0

Weekly downloads
41
License
MIT
Repository
gitlab
Last release
3 years ago

@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();
1.1.0

3 years ago

1.0.5

3 years ago

1.0.2

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.2

3 years ago

0.0.1

4 years ago