Goal is to keep the background red at the end of the animation.
Using chrome http://codepen.io/JulianNorton/pen/RNqLZM
.animation {
-webkit-animation:test-animation 2s 2;
// Animation stops after a few seconds, state doesn't stay red.
}
@-webkit-keyframes test-animation {
0% {
background-color:#fff
}
100% {
background-color:red
}
}
@keyframes test-animation {
0% {
background-color:#fff
}
100% {
background-color:red
}
}