HTML5 Blue Ocean effect, no picture to achieve irregular gradient effect, HTML5 really good, but now the mainstream IE8 does not support HTML5, so when you test, please use Firefox or Safari or Chrome, opera and other browsers.
<!DOCTYPE HTML><HTML><Head><Metahttp-equiv= "Content-type"content= "text/html; charset=utf-8" /><title>HTML5 Blue Ocean</title></Head><style>Body{Height:Auto;margin:0;}#ocean{position:Absolute;width:100%;Min-height:100%;Background-image:-webkit-gradient (linear, left bottom, left top, color-stop (0, RGB (0,50,150)), Color-stop (0.50, RGB (0,150,255)) );}. Wave{background:#a8e3ff;Display:Inline-block;Height:60%;width:10px;position:Absolute;-webkit-animation-name:Dostuff;-webkit-animation-duration:3s;-webkit-animation-iteration-count:Infinite;-webkit-transition-timing-function:Ease-in-out;}@-webkit-keyframes Dostuff{0%{Height:60%; }50%{Height:40%; }100%{Height:60%; }}</style><Body><DivID= "Ocean"></Div><Script>varOcean=document.getElementById ("Ocean"), Wavewidth= Ten, Wavecount=Math.floor (window.innerwidth/wavewidth),Docfrag=document.createdocumentfragment (); for(varI= 0; I<Wavecount; I++){ varWave=Document.createelement ("Div"); Wave.classname+= "Wave"; Docfrag.appendchild (Wave); Wave.style.left=I*Wavewidth+ "px"; Wave.style.webkitAnimationDelay=(i/+ "s";}ocean.appendchild (Docfrag);</Script></Body></HTML>