Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (42 sloc) 1.1 kb
<?xml version="1.0"?>
<entry name="fold" type="effect">
<title>Fold Effect</title>
<desc>
The fold effect hides or shows an element by folding it.
</desc>
<arguments>
<argument name="size" default="15">
<desc>The size of the "folded" element.</desc>
<type name="Number">
<desc>The size of the fold in pixels.</desc>
</type>
<type name="String">
<desc>A percentage of the element's dimention, e.g., <code>"50%"</code>.</desc>
</type>
</argument>
<argument name="horizFirst" type="Boolean" default="false">
<desc>Whether the horizontal direction happens first when hiding. Remember, showing inverts hiding.</desc>
</argument>
</arguments>
<example>
<height>200</height>
<desc>Toggle a div using the fold effect.</desc>
<css><![CDATA[
#toggle {
width: 100px;
height: 100px;
background: #ccc;
}
]]></css>
<code><![CDATA[
$( document ).click(function() {
$( "#toggle" ).toggle( "fold" );
});
]]></code>
<html><![CDATA[
<p>Click anywhere to toggle 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.