Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

38 lines (37 sloc) 1.013 kb
<?xml version="1.0"?>
<entry name="shake" type="effect">
<title>Shake Effect</title>
<desc>Shakes the element multiple times, vertically or horizontally.</desc>
<argument name="direction" type="String" default='"both"'>
<desc>The direction of the effect. Possible values: <code>"left"</code>, <code>"right"</code>, <code>"up"</code>, <code>"down"</code>.</desc>
<argument name="distance" type="Number" default="20">
<desc>Distance to shake.</desc>
<argument name="times" type="Integer" default="3">
<desc>Times to shake.</desc>
<desc>Shake a div.</desc>
#toggle {
width: 100px;
height: 100px;
background: #ccc;
$( document ).click(function() {
$( "#toggle" ).effect( "shake" );
<p>Click anywhere to shake the box.</p>
<div id="toggle"></div>
<category slug="effects"/>
Jump to Line
Something went wrong with that request. Please try again.