@curiousmedia/scroll-lock
v1.0.1
Published
Toggle website scrolling seamlessly for overlays
Downloads
3
Keywords
Readme
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