You are actually declaring the background
so it overrides your grey one, so don't declare the backgrounds at all..
@-webkit-keyframes blink {
50% { background: rgba(255,0,0,0.5); }
}
Demo 2 (Added -moz
and standard properties)
Note: I've changed
.odd
class totable tr:nth-child(odd)
which will save you declaring classes by your self in HTML, because if you can opt for animations than am sure you are not looking to support legacy browsers. If you are using for some specific reason than you can stick with calling classes by yourself :)
And you don't need the quotes around the word blink