Web Development with jQuery®

(Elliott) #1

Appendix M (^) ❘ 579
slideUp(
[duration]
[, easing]
[, function()]
)
Slides up (hides) each selected element using a
preset animation. 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
stop(
[clearQueue]
[,
jumpToTheEnd]
)
Stops all the currently running animations on all the
specifi ed elements.
If the clearQueue argument is specifi ed, it
indicates whether to remove queued animation as
well. This argument defaults to false.
The jumpToTheEnd argument is a boolean that
indicates whether the current animation should be
completed immediately. This argument defaults to
false.
jQuery
stop(
[queue]
[, clearQueue]
[,
jumpToTheEnd]
)
Stops all the currently running animations on all the
specifi ed elements.
The queue argument specifi es which queue to stop
animations within.
If the clearQueue argument is specifi ed, it
indicates whether to remove queued animation as
well. This argument defaults to false.
The jumpToTheEnd argument is a boolean that
indicates whether the current animation should be
completed immediately. This argument defaults to
false.
jQuery
toggle() Toggles each selected element between displayed
and hidden.
jQuery
toggle(
[duration]
[, function()]
)
Toggles 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
sliding has completed. this refers to the element
being slid within the callback function.
jQuery
toggle(options) A toggle animation is carried out with the
specifi ed object of options. See the “Animation
Options” section later in this appendix.
jQuery
continues
http://www.it-ebooks.info

Free download pdf