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 kn
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 light class and fade/in out the dark class):
light
dark
$('body').toggleClass('light', 250).toggleClass('dark', 250);