Fetching contributors…
Cannot retrieve contributors at this time
44 lines (43 sloc) 1.47 KB
<?xml version="1.0"?>
<entry name="addClass" type="method" return="jQuery">
<desc>Adds the specified class(es) to each of the set of matched elements while animating all style changes.</desc>
<xi:include href="../includes/class-animation-desc.xml" xmlns:xi=""/>
<xi:include href="../includes/core-extension-desc.xml" xmlns:xi=""/>
<argument name="className" type="String">
<desc>One or more class names (space separated) to be added to the class attribute of each matched element.</desc>
<xi:include href="../includes/animation-argument-duration.xml" xmlns:xi=""/>
<xi:include href="../includes/animation-argument-easing.xml" xmlns:xi=""/>
<xi:include href="../includes/animation-argument-complete.xml" xmlns:xi=""/>
<desc>Adds the class "big-blue" to the matched elements.</desc>
div {
width: 100px;
height: 100px;
background-color: #ccc;
.big-blue {
width: 200px;
height: 200px;
background-color: #00f;
$( "div" ).click(function() {
$( this ).addClass( "big-blue", 1000, "easeOutBounce" );
<category slug="effects"/>
<category slug="effects-core"/>
<category slug="overrides"/>