Appendix M. Effects
Speed
In the following table, the speed
argument of each method means that any one of "slow"
, "normal"
, "fast"
, or the time specified in milliseconds can be specified for that argument.
Callback Function
An optional callback function may be provided in the second argument. If a callback function is provided, it is executed when the animation completes.
Method | Description | Return Value |
---|---|---|
Showing and Hiding Methods | ||
| Displays each selected element if the element is hidden. | jQuery |
| Displays each selected element using an animation (see "Speed" and "Callback Function"). | jQuery |
| Uses a specific effect on an element to show the element if the first argument is an | jQuery |
| Hides each selected element if the element is not already hidden. | jQuery |
| Hides each selected element using an animation (see "Speed" and "Callback Function"). | jQuery |
| Uses a specific effect on an element to hide the element if the first argument is an | jQuery |
| Toggles each selected element between displayed and hidden. | jQuery |
| Toggles each selected element between displayed and hidden using an animation (see "Speed" and "Callback Function"). | jQuery |
| Uses a specific effect on an element to toggle the element if the first argument is an | jQuery |
|
Get Beginning JavaScript® and CSS 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.