I need to be able to fade between classes and seamlessly transition any and all styles being applied to the element and its children. How can this be done using jQuery? I know how to add/remove classes but that is not the same as a nice transition between two drastically different colors.
Share
jQuery UI has a toggleClass function that has an argument for duration:
http://jqueryui.com/demos/toggleClass/
For example, I do this on one of my sites (fade in/out the
lightclass and fade/in out thedarkclass):