You can add a glow highlight effect - where the background briefly flashes yellow then returns to normal - to elements using CSS animations.

Click me to highlight!
@keyframes highlight {
  0% {
    background: #ffff99; /* lovely yellow colour */
  100% {
    background: none;

.highlight {
    animation: highlight 2s;

This is triggered by adding a class to the target element with Javascript:


If you're targeting browsers which don't support animations, you'll need to use a support library such as jQuery UI which has a built-in highlight effect.