css3怎么讓一只雞的腳動(dòng)起來
css3怎么讓一只雞的腳動(dòng)起來?
12345678_0001
2018-10-28 05:01:41
TA貢獻(xiàn)1821條經(jīng)驗(yàn) 獲得超5個(gè)贊
用animation 如下:
<div class="box"></div>
<style>
.box{
width:100px;
height:100px;
background:red;
animation:move 5s;
}
@keyframes move
{
0% {left:0px; top:0px;}
50% {left:100px; top:200px;}
100% {left:0px; top:0px;}
}
</style>
舉報(bào)