Moves the element slightly to the left, then to the right, repeatedly.

Availability

script.aculo.us V1.0 and later.

Examples


  Effect.Shake('id_of_element');

Demo

Click for Effect.Shake demo


Notes

Works safely with most Block Elements, except tables.

Options

Items in bold are default values.

Examples


  Effect.Shake('id_of_element',{distance:5});  // small quick shake

  Effect.Shake('id_of_element',{distance:100,duration:5});  // long, slow, shake