<!DOCTYP html>
<html>
<head>
<style type=""text/css">
div
{
width: 100px;
height: 300px;
position: relative;
background-color: #ff0000;
-webkit-animation: myframe1 5s;
-webkit-animation-iteration-count: infinite;
}
@-webkit-keyframes myframe1
{
0% {background: #ff0000; left:0px}
25% {background: green; left:200px}
50% {background: yellow; left:400px}
75% {background: orange; left:800px}
100% {background: blue; left:1000px}
}
</style>
</head>
<body>
<div>Test border</div>
</body>
<html>