Nap Power: Maximum

    ab-scroller

    1.1.5 • Public • Published

    ab-scroller

    Simple touch-enabled scroller.

    Plain vanilla, no jQuery. Touch-only (will add mouse control later). Uses translate3d transforms for maximum performance. Works for vertical and horizontal axis.

    Install

    With npm do:

    $ npm install ab-scroller --save-dev

    Usage

    var ABScroller  = require('ab-scroller');
    
    var my_scroller = new ABScroller({
    	element: my_element // use my_element[0] if you're using a jQuery selector
        drag_distance_limit: 30, // bounce-back distance
        orientation: 'vertical', // axis
    });
    

    License

    MIT

    Install

    npm i ab-scroller

    DownloadsWeekly Downloads

    10

    Version

    1.1.5

    License

    MIT

    Last publish

    Collaborators

    • antoniobrandao