Consider the div "dMyDiv"
I noticed that in jquery I can animate like this:
$( "#dMyDiv").animate({ backgroundColor: "#aa0000" }, 1000 );
Brings red as a colored background, my div. But is there any way after that to say 10 seconds, return to my normal white background of my div? I see that there is a callback function, but I'm not sure that you can start the animation, and as soon as the animation is done, to return to my normal background (before the animation). Should I just do this:
$( "#dMyDiv").animate({ backgroundColor: "#aa0000" }, 1000, function() { $(
Value after red animated, just animate again to white?
source share