You can use css3 animations to flash an element
.flash {
-moz-animation: flash 1s ease-out;
-moz-animation-iteration-count: 1;
-webkit-animation: flash 1s ease-out;
-webkit-animation-iteration-count: 1;
-ms-animation: flash 1s ease-out;
-ms-animation-iteration-count: 1;
}
@keyframes flash {
0% { background-color: transparent; }
50% { background-color: #fbf8b2; }
100% { background-color: transparent; }
}
@-webkit-keyframes flash {
0% { background-color: none;transparent; }
50% { background-color: #fbf8b2; }
100% { background-color: none;transparent; }
}
@-moz-keyframes flash {
0% { background-color: none;transparent; }
50% { background-color: #fbf8b2; }
100% { background-color: none;transparent; }
}
@-ms-keyframes flash {
0% { background-color: none;transparent; }
50% { background-color: #fbf8b2; }
100% { background-color: none;transparent; }
}
And you jQuery to add the class
jQuery(selector).addClass("flash");