I have a simple notification system. I want to use jquery to highlight the onload div by changing the background color and returning to normal after 500ms only flash. Similar to when we answer questions about Stackoverflow. Simple enough to get attention.
<div id="flash">Notification</div>
$(function() {
$( "#flash" ).animate({
backgroundColor: "#aa0000",
}, 1000 );
});
It does not work as expected. It does not switch to #ffffff.
I appreciate any help.
source
share