• function

scroll FuncUnit.prototype.scroll

 

scroll(direction, amount, success)

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

Parameters

  1. direction {String}

    "left" or "top"

  2. amount {Number}

    number of pixels to scroll

  3. success {function()}