.scroll()

  • function
FuncUnit.prototype.scroll  

scroll(direction, amount, success)

Scrolls an element in a particular direction by setting the scrollTop or scrollLeft.

Parameters

  1. direction {String}

    "left" or "top"

  2. amount {Number}

    number of pixels to scroll

  3. success {function()}