Web Development with jQuery®

(Elliott) #1

Appendix M (^) ❘ 575
fadeOut(
[duration]
[, easing]
[, function()
)
Fades out (hides) each selected element by
adjusting the element’s opacity. The duration
is either a time in milliseconds or a time preset:
"slow", "normal", or "fast".
The easing can be either default easings "linear"
or "swing", or any easing documented below,
assuming you have installed the requisite additional
easings as part of jQuery UI.
The optional callback function is executed when
the animation has completed. this refers to the
element.
jQuery
fadeTo(
[duration]
[, easing]
[, function()
)
Fades in each selected element by adjusting the
element’s opacity. The duration is either a time in
milliseconds or a time preset: "slow", "normal", or
"fast".
The easing can be either default easings "linear"
or "swing", or any easing documented below,
assuming you have installed the requisite additional
easings as part of jQuery UI.
The optional callback function is executed after
the animation has completed. this refers to the
element.
jQuery
fadeToggle(
[duration]
[, easing]
[, function()
)
Toggles the display of each selected element by
fading in or out by adjusting the element’s opacity.
The duration is either a time in milliseconds or a
time preset: "slow", "normal", or "fast".
The easing can be either default easings "linear"
or "swing", or any easing documented below,
assuming you have installed the requisite additional
easings as part of jQuery UI.
The optional callback function is executed after
the animation has completed. this refers to the
element.
jQuery
fadeToggle
(options)
Toggles the display of each selected element by
fading in or out by adjusting the element’s
opacity using the specifi ed Animation Options.
See the “Animation Options” section later in this
appendix for more information.
jQuery
continues
http://www.it-ebooks.info

Free download pdf