Nail Polishing Minions

    do-something-on-scroll

    1.0.1 • Public • Published

    doSomethingOnScroll

    Somewhat performant onscroll wrapper thing that debounces to requestAnimationFrame.

    Installation

    $ npm install [--save] do-something-on-scroll
    

    Usage

    var doSomethingOnScroll = require('do-something-on-scroll');
     
    function handler(offset, prevOffset) {
        console.log(offset, prevOffset);
    }
     
    doSomethingOnScroll(handler);
     
    doSomethingOnScroll.cancel(handler);

    License

    MIT

    Install

    npm i do-something-on-scroll

    DownloadsWeekly Downloads

    0

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • arnemart