I have a div with a css style of say green or blue, depending on the nth child color. I set it to orange using
<div id='yo' class='alternatingcolors' style='background-color: #FF9900;'>hello</div>
and I want to animate it back to its original color using jquery's
$('yo').animate({ backgroundColor: 'transparent'}, 500);
However, neither transparent, inherit, null, or '' work.
How would I get it back to its original color? Essentially I want to animate it to the state before: style='background-color: #FF9900;' was set.