html, body {width:100%;height:100%;margin:0;} div { width: 100%; height: 100%; background: -moz-linear-gradient(top, rgba(30,87,153,1) 0%, rgba(118,191,36,1) 25%, rgba(224,117,35,1) 50%, rgba(242,38,42,1) 75%, rgba(130,100,70,1) 100%); background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(30,87,153,1)), color-stop(25%,rgba(118,191,36,1)), color-stop(50%,rgba(224,117,35,1)), color-stop(75%,rgba(242,38,42,1)), color-stop(100%,rgba(130,100,70,1))); background: -webkit-linear-gradient(top, rgba(30,87,153,1) 0%,rgba(118,191,36,1) 25%,rgba(224,117,35,1) 50%,rgba(242,38,42,1) 75%,rgba(130,100,70,1) 100%); background: linear-gradient(to bottom, rgba(30,87,153,1) 0%,rgba(118,191,36,1) 25%,rgba(224,117,35,1) 50%,rgba(242,38,42,1) 75%,rgba(130,100,70,1) 100%); background-size: 100% 400%; background-position:0 0; -webkit-animation: animateGradient 5s ease 1; -moz-animation: animateGradient 5s ease 1; animation: animateGradient 5s ease 1; -webkit-animation-delay: 2s; -moz-animation-delay: 2s; animation-delay: 2s; } @-webkit-keyframes animateGradient { 0% {background-position: 0 0;} 50% {background-position: 0 100%;} 100% {background-position: 0 0;} } @-moz-keyframes animateGradient { 0% {background-position: 0 0;} 50% {background-position: 0 100%;} 100% {background-position: 0 0;} } @keyframes animateGradient { 0% {background-position: 0 0;} 50% {background-position: 0 100%;} 100% {background-position: 0 0;} }
<div></div>