Effect methods
These effect methods may be used to perform animations on DOM elements. The effect methods are discussed in detail in Chapter 4, Styling and Animating.
Predefined effects
Effect method |
Description |
---|---|
|
Displays the matched elements. |
|
Hides the matched elements. |
|
Displays the matched elements by animating |
|
Hides the matched elements by animating |
|
Displays or hides the matched elements. |
|
Displays the matched elements with a sliding motion. |
|
Hides the matched elements with a sliding motion. |
|
Displays or hides the matched elements with a sliding motion. |
|
Displays the matched elements by fading them to opaque. |
|
Hides the matched elements by fading them to transparent. |
|
Displays or hides the matched elements with a fading animation. |
|
Adjusts the opacity of the matched elements. |
Custom animations
Effect method |
Description |
---|---|
|
Performs a custom animation of the specifiedCSS properties. |
|
A lower-level interface to |
Queue manipulation
Effect method |
Description |
---|---|
|
Retrieves the queue of functions on the first matched element. |
|
Adds |
|
Replaces the queue with a new one. |
|
Executes the next function on the queue. |
|
Empties the queue of all pending functions. |
|
Stops the currently running animation, then starts queued animations, if any. |
|
Stops the currently running animation and immediately advances all queued animations to their target values. |
|
Waits |
|
Returns a promise object to be resolved once all queued actions on the collection have finished. |