div
{
position:relative;
background-color:red;
width:120px;
height:50px;
animation:donghua 5s;
animation-timing-function:linear;
}
@keyframes donghua
{
0% {width:120px;height:50px;left:0px; top:0px;}
25% {transform:rotate(30deg);}
50% {left:200px; top:0px;}
75% {transform:rotate(330deg);}
100% {left:0px; top:0px;}
}
查看更多关于关于@keyframes定义动画的问题_html/css_WEB-ITnose的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did114217