Skroller

API

skroller(element, to, options)

General skrolling function.

Arguments:

element Element to scroll (or string).
to Target element to scroll to or number.
options Skroll options:
- axis Scroll axis (x,y,xy,yx,both)
'both' will scroll on both axis at the same time (diagonal scroll), this is the default.
'xy' will scroll on axis x and then on axis y.
- duration Scroll duration in ms.
- complete On complete callback.