back
Code
CSS
HTML
Web
#div256{
height:150px;
width:150px;
background-color:red;
animation-name:colours;
-webkit-animation-name:colours;
animation-duration:5s;
-webkit-animation-duration:5s;
animation-iteration-count:infinite;
-webkit-animation-iteration-count:infinite;
}
@keyframes colours{
30%{background-color:blue;}
60%{background-color:green;}
90%{background-color:red;}
}
@-webkit-keyframes colours{
30%{background-color:blue;}
60%{background-color:green;}
90%{background-color:red;}
}