Using jQuery to switch div class names for animations
Check out the link below.
jQuery switching div class effect with animations.
I’m use Firefox with Firebug addon to see the div automatically change from “newClass” to “anotherNewClass”.
Look at the page and under the div class=”toggler”.
It changes from:
<div class=”ui-corner-all newClass” id=”effect” style=” “>Etiam libero neque, luctus a, eleifend nec, semper at, lorem. Sed pede.</div>
And when you click Run Effect, it changes to:
<div id=”effect” class=”ui-corner-all anotherNewClass” style=” “>Etiam libero neque, luctus a, eleifend nec, semper at, lorem. Sed pede. </div>

comment