I\'ve the following JavaScript snippet:
$(\"#dashboard\").addClass(\"standby\").delay(3000).removeClass(\"standby\"); $(\".active\").removeClass(\"active\");
Seems like for what you are trying to do, you might want to take a look at CSS transitions:
http://css-tricks.com/almanac/properties/t/transition/
You can still have .addClass(), except now your class will utilize these transition properties, and you won't need .delay().
.addClass()