Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

jQuery UI API - Shake Effect

jQuery UI API - Shake Effect

Category

Effects

Usage

**Description:** Shake an element multiple times vertically or horizontally.

shake

Parameters Type Description Default value
direction String A value of "left" or "right" shakes the element horizontally; "up" or "down" shakes it vertically. The value specifies the direction of the first move along the axis. "left"
distance Number The distance to shake. 20
times Integer The number of times to shake. 3

Example

Shake a div.









  

  震动特效(Shake Effect)演示

  

  

  

  





 

点击任意地方进行震动。