O'Reilly logo

Learning jQuery Third Edition by Karl Swedberg, Jonathan Chaffer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Effect methods

These effect methods may be used to perform animations on DOM elements. Effect methods are discussed in detail in Chapter 4.

Predefined effects

Effect Method

Description

.show()

Display the matched elements

.hide()

Hide the matched elements

.show(speed, [callback])

Display the matched elements by animating height, width, and opacity

.hide(speed, [callback])

Hide the matched elements by animating height, width, and opacity

.toggle([speed], [callback])

Display or hide the matched elements

.slideDown([speed], [callback])

Display the matched elements with a sliding motion

.slideUp([speed], [callback])

Hide the matched elements with a sliding motion

.slideToggle([speed], [callback])

Display ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required