jQuery UI API - Slide Effect
Category
Usage
**Description:** Slide an element out of the viewport.
slide
| Parameters | Type | Description | Default value |
|---|---|---|---|
| direction | String | The direction of the effect. Possible values: "left", "right", "up", "down". | "both" |
| distance | Number | The distance of the effect. It defaults to the element's height or width depending on the direction parameter. It can be set to any integer smaller than the element's width/height. | The element's outerWidth |
Example
Toggle a div using the Slide Effect.
滑动特效(Slide Effect)演示
点击任意地方进行切换。