This scrolls the browser window to ensure that a DOM element is in view.
Functions
fade
function fade (
el,
options
)
Fades a DOM element in or out.
Parameters
el
the element to fade
options
an object of options to use. This object must have a fade property, which should be either the string ‘in’ or ‘out’, corresponding to the direction of the fade. The second property used here, onComplete, is a function that is called once the fade is complete. This is optional.
Returns
nothing
scrollWindowTo
function scrollWindowTo (
el
)
This scrolls the browser window to ensure that a DOM element is in view. Make sure that the element has been added to the page before calling this function.