skrlspeed

    0.2.2 • Public • Published

    skrlspeed

    Scroll speed controller

    Install

    npm install --save skrlspeed
    component install andrepolischuk/skrlspeed

    API

    skrlspeed([element])

    Create controller for element, default document

    var ctrlElement = skrlspeed(document.querySelector('.element'));
    var ctrlPage = skrlspeed();

    .set(factor)

    Set speed factor, default 1

    skrlspeed().set(-1);

    .clear()

    Set default speed factor

    License

    MIT

    Install

    npm i skrlspeed

    DownloadsWeekly Downloads

    1

    Version

    0.2.2

    License

    MIT

    Last publish

    Collaborators

    • andrepolischuk