Web Development with jQuery®

(Elliott) #1

(^576) ❘ APPENDIX M ANIMATION AND EASING EFFECTS
finish([queue]) Stop the currently running animation, remove all
queued animations, and complete all animations for
the matched elements.
If the optional queue argument is specifi ed,
animations are stopped, removed, and completed
only for the referenced queue.
jQuery
hide() Hides each selected element if the element is not
already hidden.
jQuery
hide(
[duration]
[, function()]
)
Hides each selected element using an animation.
The duration is either a time in milliseconds or a
time preset: "slow", "normal", or "fast".
An optional callback function can be executed when
hiding has completed. this refers to the element
being hidden within the callback function.
jQuery
hide(options) The hide animation is carried out with the specifi ed
object of options. See the “Animation Options”
section later in this appendix.
jQuery
hide(
[duration]
[, easing]
[, function()]
)
Hides each selected element using a preset
animation. The duration is either a time in mil-
liseconds 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
$.fx.interval The rate in milliseconds that specifi es how often
animations fi re.
Default value: 13 milliseconds
Number
$.fx.off Globally disable all animations. Boolean
queue([queue]) Shows the queue of functions to be executed on
the matched elements.
Array
queue([queue],
newQueue)
Manipulates the queue of functions to be executed,
once for each matched element.
The newQueue argument should contain an array of
functions to replace the current queue contents.
jQuery
(continued)
http://www.it-ebooks.info

Free download pdf