the compact javascript framework
in partnership with mediatemple
Contains the Scroller.
MIT-style license.
Scroller.js | Contains the Scroller. |
Scroller | The Scroller is a class to scroll any element with an overflow (including the window) when the mouse cursor reaches certain buondaries of that element. |
Properties | |
start | The scroller starts listening to mouse movements. |
stop | The scroller stops listening to mouse movements. |
The Scroller is a class to scroll any element with an overflow (including the window) when the mouse cursor reaches certain buondaries of that element. You must call its start method to start listening to mouse movements.
The Scroller requires an XHTML doctype.
element | required, the element to scroll. |
options | optional, see options below, and Fx.Base options. |
area | integer, the necessary boundaries to make the element scroll. |
velocity | integer, velocity ratio, the modifier for the window scrolling speed. |
onChange | optionally, when the mouse reaches some boundaries, you can choose to alter some other values, instead of the scrolling offsets. Automatically passes as parameters x and y values. |
Properties | |
start | The scroller starts listening to mouse movements. |
stop | The scroller stops listening to mouse movements. |
Documentation by Aaron Newton & Mootools Developers, generated by NaturalDocs and GeSHi