Skip to content

HTTPS clone URL

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>
<arguments>
<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>
<argument name="distance" type="Number" default="20">
<desc>Distance to shake.</desc>
</argument>
<argument name="times" type="Integer" default="3">
<desc>Times to shake.</desc>
</argument>
</arguments>
<example>
<height>200</height>
<desc>Shake a div.</desc>
<css><![CDATA[
#toggle {
width: 100px;
height: 100px;
background: #ccc;
}
]]></css>
<code><![CDATA[
$( document ).click(function() {
$( "#toggle" ).effect( "shake" );
});
]]></code>
<html><![CDATA[
<p>Click anywhere to shake the box.</p>
<div id="toggle"></div>
]]></html>
</example>
<category slug="effects"/>
</entry>
Jump to Line
Something went wrong with that request. Please try again.