.addClass( className [, duration ] [, easing ] [, complete ] )Returns: jQuery
Description: Adds the specified class(es) to each of the set of matched elements while animating all style changes.
.addClass( className [, duration ] [, easing ] [, complete ] )
classNameType: StringOne or more class names (space separated) to be added to the class attribute of each matched element.
400)A string or number determining how long the animation will run.
swing)Type: StringA string indicating which easing function to use for the transition.
completeType: Function()A function to call once the animation is complete.
.addClass(), support custom durations and easings, as well as providing a callback for when the animation completes.
Not all styles can be animated. For example, there is no way to animate a background image. Any styles that cannot be animated will be changed at the end of the animation.
This plugin extends jQuery's built-in
.addClass() method. If jQuery UI is not loaded, calling the
.addClass() method may not fail directly, as the method still exists. However, the expected behavior will not occur.
Adds the class "big-blue" to the matched elements.