Keyframe animation animation, transform combination
<HTML><Head> <MetaCharSet= "Utf-8" /> <title>Blade Demo</title> <styletype= "Text/css">@-webkit-keyframes Itemframe{From {-webkit-transform:Translatey ( -80px); } to{-webkit-transform:Translate (0); } } * {margin:0;padding:0; }#demo Li{List-style:None;Border:1px solid Black;margin:10px;padding:10px; }. Animateitem{-webkit-animation:itemframe 1s; } </style> <Scripttype= "Text/javascript"src= "Http://sandbox.runjs.cn/js/sandbox/other/zepto.min.js"></Script></Head><Body> <ulID= "Demo"> </ul> <Script> varEl= $('#demo'); for(varI= 0; I< Ten; I++) { varLi= $('<li> Projects _' +i); El.append (LI); } varItems= $('#demo Li'); functionAnimatfn () {$.each (items,function(i) {varEl= $( This); El.css ('-webkit-animation-delay', I* - + 'Ms'); El.addclass ('Animateitem'); })} Items.on ('Webkitanimationend', function() {Items.removeclass ('Animateitem'); Items.css ('-webkit-animation-delay', "'); }); ANIMATFN (); /*setinterval (function () {ANIMATFN (); }, +)*/ </Script> </Body></HTML>
CSS3 animation effects App