For compatibility with various web browsers, you can achieve this effect by utilizing CSS animations (view example).
h2 {
background: rgba(0, 0, 0, 0.5);
}
.image:hover h2 {
background: rgba(0, 0, 0, 0.8);
-moz-animation: 2s ease 0s normal none infinite pulse;
-webkit-animation: 2s ease 0s normal none infinite pulse;
}
@-moz-keyframes pulse {
0% { color: #000 }
50% { color: #FFF }
100% { color: #000; }
}
@-webkit-keyframes pulse {
0% { color: #000 }
50% { color: #FFF }
100% { color: #000; }
}
If you require support for older browsers, consider using PNG background-images with alpha transparency instead of RGBA, and utilize jQuery animate() in place of CSS animations.