I am using the following code to change the background color of an element using css animations. Is there a way to change this in order to make it loop continuously?
#circle {
animation: colorchange 10s;
-webkit-animation: colorchange 10s;
}
@keyframes colorchange
{
0% {background: red;}
25% {background: yellow;}
50% {background: blue;}
75% {background: green;}
100% {background: red;}
}
@-webkit-keyframes colorchange
{
0% {background: red;}
25% {background: yellow;}
50% {background: blue;}
75% {background: green;}
100% {background: red;}
}