Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 44 lines (43 sloc) 1.452 kB
c74a62e @scottgonzalez Added .show(), .hide(), .toggle().
scottgonzalez authored
1 <?xml version="1.0"?>
2 <entry name="toggle" type="method" return="jQuery">
3 <title>.toggle()</title>
4 <desc>Display or hide the matched elements, using custom effects.</desc>
5 <longdesc>
6 <xi:include href="../includes/core-extension-desc.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
7 </longdesc>
8 <signature>
9 <argument name="effect" type="String">
10 <desc>A string indicating which <a href="/category/effect/">effect</a> to use for the transition.</desc>
11 </argument>
12 <argument name="options" type="Object" optional="true">
d866e78 @scottgonzalez Link to easings page whenever mentioning easings.
scottgonzalez authored
13 <desc>Effect-specific settings and <a href="/easings/">easing</a>.</desc>
c74a62e @scottgonzalez Added .show(), .hide(), .toggle().
scottgonzalez authored
14 </argument>
15 <xi:include href="../includes/animation-argument-duration.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
16 <xi:include href="../includes/animation-argument-complete.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
17 </signature>
ed0f5ae @scottgonzalez Updated easing and duration arguments in animation methods.
scottgonzalez authored
18 <xi:include href="../includes/animation-signature-options.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
c74a62e @scottgonzalez Added .show(), .hide(), .toggle().
scottgonzalez authored
19 <example>
136df88 @scottgonzalez Adjusted demo heights.
scottgonzalez authored
20 <height>150</height>
c74a62e @scottgonzalez Added .show(), .hide(), .toggle().
scottgonzalez authored
21 <desc>Toggle a div using the fold effect.</desc>
22 <css><![CDATA[
23 div {
24 width: 100px;
25 height: 100px;
26 background: #ccc;
27 border: 1px solid #000;
28 }
29 ]]></css>
30 <html><![CDATA[
31 <button>toggle the div</button>
32 <div></div>
33 ]]></html>
34 <code><![CDATA[
35 $( "button" ).click(function() {
36 $( "div" ).toggle( "fold", 1000 );
37 });
38 ]]></code>
39 </example>
40 <category slug="methods"/>
41 <category slug="effects"/>
870a893 @scottgonzalez Added method overrides category.
scottgonzalez authored
42 <category slug="overrides"/>
c74a62e @scottgonzalez Added .show(), .hide(), .toggle().
scottgonzalez authored
43 </entry>
Something went wrong with that request. Please try again.