欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

CSS3+Sprite實(shí)現(xiàn)僵尸行走動(dòng)畫特效源碼

  發(fā)布時(shí)間:2016-01-27 14:51:19   作者:佚名   我要評(píng)論
植物大戰(zhàn)僵尸游戲相信大家都玩過吧,那么具體實(shí)現(xiàn)代碼大家知道嗎,下面小編給大家分享CSS3+Sprite實(shí)現(xiàn)僵尸行走動(dòng)畫特效源碼 ,感興趣的朋友一起學(xué)習(xí)吧

植物大戰(zhàn)僵尸游戲相信大家都玩過吧,那么具體實(shí)現(xiàn)代碼大家知道嗎,下面小編給大家分享代碼,在沒分享代碼之前先給大家展示下效果圖:

css代碼:

復(fù)制代碼
代碼如下:

@charset "utf-8";
/* CSS Document */
/* General CSS */
*{
padding:0px;
margin:0px;
}
body,html {
width:100%;
height:100%;
margin:0px;
padding:0px;
font-family: "Roboto", sans-serif;
font-size: 12px;
font-weight: 700;
}
/*DEMO CSS*/
body{
position:relative;
background: transparent url("../img/background.jpg") no-repeat scroll center top / cover;
background-attachment:fixed;
}
.zoombie {
/*Our png sprite is 2000px x 312px, then each frame is 200px x 312px*/
width: 200px;
height: 312px;
background-image: url("../img/walkingdead.png");
-webkit-animation: play 1.8s steps(10) infinite;
-moz-animation: play 1.8s steps(10) infinite;
-ms-animation: play 1.8s steps(10) infinite;
-o-animation: play 1.8s steps(10) infinite;
animation: play 1.8s steps(10) infinite ;
}
@-webkit-keyframes play {
from { background-position: 0px; }
to { background-position: -2000px; }
}
@-moz-keyframes play {
from { background-position: 0px; }
to { background-position: -2000px; }
}
@-ms-keyframes play {
from { background-position: 0px; }
to { background-position: -2000px; }
}
@-o-keyframes play {
from { background-position: 0px; }
to { background-position: -2000px; }
}
@keyframes play {
from { background-position: 0px; }
to { background-position: -2000px; }
}
#wrapper {
transform: translate(-50%, -50%);
position: absolute;
top: 50%;
left: 50%;
}

以上所述是小編給大家分享的CSS3+Sprite實(shí)現(xiàn)僵尸行走動(dòng)畫特效源碼 ,希望對(duì)大家有所幫助。

相關(guān)文章

  • CSS3 steps屬性制作僵尸行Sprite動(dòng)畫特效源碼

    CSS3實(shí)現(xiàn)僵尸行Sprite動(dòng)畫特效源碼是一款使用animation動(dòng)畫的steps屬性制作的僵尸行走CSS3 Sprite動(dòng)畫特效的代碼,形成僵尸走路的動(dòng)畫效果
    2015-12-10
  • 純CSS3實(shí)現(xiàn)的人物行走動(dòng)畫特效源碼

    今天分享的是一款純CSS3實(shí)現(xiàn)的動(dòng)畫特效源碼,該源碼非常神奇,它可以模擬人物行走,而且人物行走動(dòng)畫非常逼真。人物行走時(shí)的跨步動(dòng)畫時(shí)多張圖片重疊實(shí)現(xiàn)的。有了這個(gè)CSS3人
    2014-10-22

最新評(píng)論