jQuery UI API - Scale Effect
Category
Usage
**Description:** Scale an element by a certain percentage.
scale
| Parameters | Type | Description | Default value |
|---|---|---|---|
| direction | String | The direction of the effect. Possible values: "both", "vertical", or "horizontal". | "both" |
| origin | Array | The vanishing point. | [ "middle", "center" ] |
| percent | Number | The percentage to scale to. | |
| scale | String | Which area of the element will be resized: "both", "box", or "content". When the value is "box", the element's border and padding are resized. When it is "content", all content inside the element is resized. | "both" |
Example
Example 1:
Toggle a div using the Scale Effect.
缩放特效(Scale Effect)演示
点击任意地方进行切换。
Example 2:
Toggle a div using the Scale Effect in only one direction.
>缩放特效(Scale Effect)演示
点击任意地方进行切换。