@burst/scroll-lock
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@burst/scroll-lock

Lock scroll position. A scroll lock class is added. Default lock clas is is-scroll-disabled

Installation

npm i @burst/scroll-lock --save-dev

Usage

import { scrollLock } from '@burst/scrollLock';

lockScroll.lockScroll();
// options
// scrollClass = 'is-scroll-disabled',
// setScroll = true,
// setFixed = true,

lockScroll.releaseScroll(true); // use true to remove all fixed styling on the document

/@burst/scroll-lock/

    Package Sidebar

    Install

    npm i @burst/scroll-lock

    Weekly Downloads

    78

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    18.6 kB

    Total Files

    10

    Last publish

    Collaborators

    • joriregter
    • burst-bot
    • carinhansen
    • perryjanssen
    • fvanharreveld
    • robinheij
    • dennistimmers