As well as extending jQuery's animate()
method in order to provide color animations, jQuery UI also extends some of jQuery's element manipulation methods. The following methods are extended to provide class transitions:
jQuery UI also exposes a new method for transitioning between two classes—the
switchClass()
method, which accepts the current class and new class, as well as duration, easing, and callback arguments.