HTML5 Blue Ocean

Source: Internet
Author: User

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>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.