Description
The .slideUp() method gradually changes the height, for selected elements, from visible to hidden (slide effect).
v1.0
This method has the form:
.slideUp([duration] [, callback])
Parameter | Description |
---|---|
duration | (optional) Specifies the speed of the slide effect (default = "normal").
Possible values:
|
callback | (optional) A function to be executed after the slideUp() method is completed. |
Return Value
This form returns a jQuery object.
v1.4.3
This method has the alternate form:
.slideUp([duration] [, easing] [, callback)
Parameter | Description |
---|---|
duration | (optional) Specifies the speed of the slide effect (default = "normal").
Possible values:
|
easing | (optional) A string indicating which easing function to use for the transition. |
callback | (optional) A function to be executed after the slideUp() method is completed. |
Return Value
This form returns a jQuery object.
Examples
Slide up a p element:
$(".btn1").click(function(){
$("p").slideUp();
});