Skip to content

Latest commit

 

History

History
58 lines (48 loc) · 2.33 KB

README.md

File metadata and controls

58 lines (48 loc) · 2.33 KB

scrollThis

A simple jQuery plugin for wrapping an element in a scrollable box with buttons and scroll wheel functionality. Here's An Example!

// Using ScrollThis with the default options
$(".thingToMakeScroll").scrollThis();

// Using ScrollThis and specifing options
$(".withOptions").scrollThis({              
       scrollNum: 1,                        // number of items to scroll (any multiple, could be 0.5!)
       hoverScrollNum:1,                    // number of items to scroll on hover over button
       hoverScrollDelay:200,                // delay between scrolls during hover
       hoverStartDelay:1000,                // time to hover over button before scrolling
       cssSelectors:{                       // a collection of CSS classes that will be applied to new elements
               wrapper:"container",           // wrapper class
               buttons:"btn",                 // button class
               upBtn:"up",                    // up button class
               downBtn:"down"                 // down button class
       }
});