FuncUnit.prototype.scrollTop  function     

Gets an element's scrollTop or waits until it equals a specified value.

// gets the scrollTop
S("#foo").scrollTop();

// waits until the scrollTop is 100
S("#foo").scrollTop(100) 
func_unit.scrollTop(scrollTop, callback) -> String|funcUnit
{optional:Number|Function}

If provided uses this as a check before continuing to the next action. Or you can provide a function that returns true to continue to the next action.

{optional:Function}

a callback that will run after this action completes.

{String|funcUnit}

if scrollTop is provided, returns the funcUnit selector for chaining, otherwise returns the scrollTop of the selector.

© Jupiter IT - JavaScriptMVC Training and Support