div { position: relative; -webkit-animation: color 2s forwards, move 2s infinite 2s; } @-webkit-keyframes color { from { background: red; } to { background: blue; } } @-webkit-keyframes move { from,to { left: 0; } 50% { left: 50px; } }