Effects

Summary
Fades a DOM element in or out.
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

elthe element to fade
optionsan 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.

Parameters

elthe element to scroll to.

Returns

nothing

function fade (el,
options)
Fades a DOM element in or out.
function scrollWindowTo (el)
This scrolls the browser window to ensure that a DOM element is in view.