Browse files

Added .removeClass().

  • Loading branch information...
1 parent 87b7a23 commit 5723b402c1cee74033e8f1ec2f478bc3c8180967 @scottgonzalez scottgonzalez committed Aug 27, 2012
Showing with 40 additions and 0 deletions.
  1. +40 −0 entries/removeClass.xml
View
40 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.