Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
87b7a23
commit 5723b40
Showing
1 changed file
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?xml version="1.0"?> | ||
<entry name="removeClass" type="method" return="jQuery"> | ||
<title>.removeClass()</title> | ||
<desc>Removes the specified class(es) from each of the set of matched elements while animating all style changes.</desc> | ||
<longdesc> | ||
<p>Similar to native CSS transitions, jQuery UI's class animations provide a smooth transition from one state to another while allowing you to keep all the details about which styles to change in CSS and out of your JavaScript. All class animation methods, including <code>.removeClass()</code>, support custom durations and easings, as well as providing a callback for when the animation completes.</p> | ||
</longdesc> | ||
<signature> | ||
<argument name="className" type="String"> | ||
<desc>One or more class names to be removed from the class attribute of each matched element.</desc> | ||
</argument> | ||
<xi:include href="../includes/animation-argument-duration.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/> | ||
<xi:include href="../includes/animation-argument-easing.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/> | ||
<xi:include href="../includes/animation-argument-complete.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/> | ||
</signature> | ||
<example> | ||
<desc>Removes the class "big-blue" from the matched elements.</desc> | ||
<css><![CDATA[ | ||
div { | ||
width: 100px; | ||
height: 100px; | ||
background-color: #ccc; | ||
} | ||
.big-blue { | ||
width: 200px; | ||
height: 200px; | ||
background-color: #00f; | ||
} | ||
]]></css> | ||
<html><![CDATA[ | ||
<div class="big-blue"></div> | ||
]]></html> | ||
<code><![CDATA[ | ||
$( "div" ).click(function() { | ||
$( this ).removeClass( "big-blue", 1000, "easeInBack" ); | ||
}); | ||
]]></code> | ||
</example> | ||
<category slug="effects"/> | ||
</entry> |