Skip to content
Newer
Older
100644 43 lines (42 sloc) 1.07 KB
f1b270b @rdworth Initial import from jquery-docs repo. New home :)
rdworth authored
1 <?xml version="1.0"?>
18863d4 @scottgonzalez Removed unused @namespace and @widgetnamespace.
scottgonzalez authored
2 <entry name="fold" type="effect">
12f32df @scottgonzalez Added <title> for page titles.
scottgonzalez authored
3 <title>Fold Effect</title>
f1b270b @rdworth Initial import from jquery-docs repo. New home :)
rdworth authored
4 <desc>
5 The fold effect hides or shows an element by folding it.
6 </desc>
f601674 @scottgonzalez Updated all effects.
scottgonzalez authored
7 <arguments>
8 <argument name="size" default="15">
9 <desc>The size of the "folded" element.</desc>
10 <type name="Number">
11 <desc>The size of the fold in pixels.</desc>
12 </type>
13 <type name="String">
14 <desc>A percentage of the element's dimention, e.g., <code>"50%"</code>.</desc>
15 </type>
16 </argument>
17 <argument name="horizFirst" type="Boolean" default="false">
18 <desc>Whether the horizontal direction happens first when hiding. Remember, showing inverts hiding.</desc>
19 </argument>
20 </arguments>
d29d212 @jzaefferer Fix examples/demos. Will fix #24, pending a change to web-base-template
jzaefferer authored
21 <example>
136df88 @scottgonzalez Adjusted demo heights.
scottgonzalez authored
22 <height>200</height>
f601674 @scottgonzalez Updated all effects.
scottgonzalez authored
23 <desc>Toggle a div using the fold effect.</desc>
d29d212 @jzaefferer Fix examples/demos. Will fix #24, pending a change to web-base-template
jzaefferer authored
24 <css><![CDATA[
f601674 @scottgonzalez Updated all effects.
scottgonzalez authored
25 #toggle {
26 width: 100px;
27 height: 100px;
28 background: #ccc;
29 }
d29d212 @jzaefferer Fix examples/demos. Will fix #24, pending a change to web-base-template
jzaefferer authored
30 ]]></css>
31 <code><![CDATA[
32 $( document ).click(function() {
f601674 @scottgonzalez Updated all effects.
scottgonzalez authored
33 $( "#toggle" ).toggle( "fold" );
d29d212 @jzaefferer Fix examples/demos. Will fix #24, pending a change to web-base-template
jzaefferer authored
34 });
35 ]]></code>
36 <html><![CDATA[
f601674 @scottgonzalez Updated all effects.
scottgonzalez authored
37 <p>Click anywhere to toggle the box.</p>
d29d212 @jzaefferer Fix examples/demos. Will fix #24, pending a change to web-base-template
jzaefferer authored
38 <div id="toggle"></div>
39 ]]></html>
40 </example>
80ecaf4 @rdworth Fixed entries2html based on the one in api.jquery.com to put the scri…
rdworth authored
41 <category slug="effects"/>
f1b270b @rdworth Initial import from jquery-docs repo. New home :)
rdworth authored
42 </entry>
Something went wrong with that request. Please try again.