Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added .removeClass().

  • Loading branch information...
commit 5723b402c1cee74033e8f1ec2f478bc3c8180967 1 parent 87b7a23
Scott González scottgonzalez authored
Showing with 40 additions and 0 deletions.
  1. +40 −0 entries/removeClass.xml
40 entries/removeClass.xml
View
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.