span{color:#3366cc;font-size:36px;font-family:Arial;font-weight:bold;} @keyframes myfirst { from {background: red;} to {background: yellow;} } div { animation: myfirst 5s infinite; }