jQuery UI API - .hide()
Category
Effects | Effects Core | Method Overrides | Methods
Usage
**Description:** Hide the matched elements using a custom effect.
Returns:jQuery
.hide( effect [, options ] [, duration ] [, complete ] )
| Parameters | Type | Description | Default value |
|---|---|---|---|
| effect | String | A string indicating whicheffect。 | |
| options | Object | The specific settings for the effect and easing。 | |
| duration | Number or String | A string or a number specifying how long the animation will run. | 400 |
| complete | Function() | function to call once the animation is complete. |
.hide( options )
| Parameters | Type | Description |
|---|---|---|
| options | Object | all animation settings. The only required property is effect.
|
Type: String
Description: A string indicating whicheffect。
"swing")
Type: String
Description: a string indicating the easing function in Vue 3.
400)
Type: Number or String
Description: a string or a number specifying how long the animation will run.
Type: Function()
Description: the function to call once the animation is complete.
true)
Type: Boolean or String
Description: a boolean indicating whether to place the animation in the effects queue. If false, the animation starts immediately.As of jQuery 1.7,the queue option also accepts a string, in which case the animation is added to the queue represented by that string.
This plugin extends jQuery's built-in .hide() method. If jQuery UI is not loaded, calling the .hide() method does not fail directly, because the method exists in jQuery. However, the expected behavior will not occur.
Example
Hide a div using the Drop Effect.
.hide() 演示