1.0.1 • Published 2 years ago

@curiousmedia/scroll-lock v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Scroll Lock

Toggle website scrolling seamlessly for overlays.

Installation

Import Javascript and CSS file.

It is recommended to remove all margin on the body element.

Example

window.sl = new ScrollLock();

window.sl.locked = true; // disable scroll
window.sl.locaked = false // enable scroll
1.0.1

2 years ago

1.0.0

2 years ago