bapp13.indd 02/19/2015 Page 573
Animation and Easing Effects
METHOD DESCRIPTION RETURN
VALUEanimate(
css
[, duration]
[, easing]
[, function()]
)Animates an element’s styles, from the styles an
element begins with, to the styles specifi ed in an
object literal provided to the fi rst argument. At
the time of this writing, only CSS properties with
numeric values are supported. Animating color tran-
sitions is supported with additional plugin support.
The easing argument accepts two possible
values using the default easing library, "linear"
and "swing". However, you may download and
enable a plethora of additional easing options,
which are documented later in this appendix.
The optional callback function is executed once the
animation has completed. this refers to the
element animated.jQueryanimate(
css,
options
)Animates an element’s styles, from the styles an
element begins with to the styles specifi ed in an
object literal provided to the fi rst argument. See the
“Animation Options” section later in this appendix.jQueryclearQueue
([queue])Removes from the queue all items that have not
been executed yet. If a queue is specifi ed, only that
queue is cleared.jQuerydelay(duration
[, queue])Sets a timer to delay the execution of subsequent
items in the queue. If a queue is specifi ed, the delay
is initiated on that queue item.jQueryM
continues