I want to know how can I change the background color after couple of seconds in css?
For example I want 3 colors: blue, red, green. After each 3 seconds the background color is changing.
Does anyone has any idea?
This is my code. But I can change only 2 colors and is not looping
p {
display: inline;
animation: background-fade 3s forwards;
-webkit-animation: background-fade 3s forwards;
-moz-animation: background-fade 3s forwards;
}
@-webkit-keyframes background-fade {
100% {
background:#c92884;
}
}
JSFidlle http://jsfiddle.net/326mJ/7/