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.
Effect methods
Predefined effects
Effect method |
Description |
.show() |
Displays the matched elements. |
.hide() |
Hides the matched elements. |
.show(speed, [callback]) |
Displays the matched elements by animating height, width, and opacity. |
.hide(speed, [callback]) |
Hides the matched elements by animating height, width, and opacity. |
.slideDown([speed], [callback]) |
Displays the matched elements with a sliding motion. |
.slideUp([speed], [callback]) |
Hides the matched elements with a sliding motion. |
.slideToggle([speed], [callback]) |
Displays or hides the matched elements with a sliding... |