Skip to content

Commit

Permalink
Added .removeClass().
Browse files Browse the repository at this point in the history
  • Loading branch information
scottgonzalez committed Aug 27, 2012
1 parent 87b7a23 commit 5723b40
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions entries/removeClass.xml
@@ -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>

0 comments on commit 5723b40

Please sign in to comment.