Appendix M

Animation and Easing Effects

Method Description Return Value
animate( css [, duration] [, easing] [, function()]) Animates an element's styles, from the styles an element begins with, to the styles specified in an object literal provided to the first argument. At the time of this writing, only CSS properties with numeric values are supported. Animating color transitions 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. jQuery
animate( css, options) Animates an element's styles, from the styles an element begins with to the styles specified in an object literal provided to the first argument. See the “Animation Options” section later in this appendix. jQuery
clearQueue([queue]) Removes from the queue all items that have not been executed yet. If a queue is specified, only that queue is cleared. jQuery
delay(duration[, queue]) Sets a timer to delay the execution of subsequent items in the queue. If a queue is specified, the delay is initiated on that queue item. jQuery
dequeue([queue]) Executes the next function in the queue for the matched elements. If the optional queue argument is specified, that queue item is executed. ...

Get Web Development with jQuery now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.