jQuery Tutorials
jQuery Effects
jQuery HTML
jQuery Traversing
jQuery AJAX
jQuery Misc
With jQuery you can create a smooth effect on objects.
jQuery has the following slide methods:
slideDown()
slideUp()
slideToggle()
The jQuery slideDown()
method is used to slide an object.
Syntax:
Optional speed parameter specifies the duration of the output. It can take the following values: "slow", "fast", or milliseconds.
Optional callback parameter is a function to be used after you have finished sliding.
The following example illustrates slideDown()
method:
The jQuery slideUp()
method is used for sliding over an object.
Syntax:
Optional speed parameter specifies the duration of the output. It can take the following values: "slow", "fast", or milliseconds.
Optional callback parameter is a function to be used after you have finished sliding.
The following example illustrates slideUp()
method:
The jQuery slideToggle()
method switches between slideDown()
and slideUp()
modes.
If the elements are slipped down, slideToggle()
will slide upwards.
If the elements slide up, slideToggle()
will slide down.
Optional speed parameter can take the following values: "slow", "fast", milliseconds.
Optional callback parameter is a function to be used after you have finished sliding.
The following example illustrates slideToggle()
method: