CSS3动画

CSS3动画

 
 
 
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS3动画</title>
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<style>
#myfirst {
width: 0;
height: 0;
border-left: 50px solid transparent;
border-right: 50px solid transparent;
border-bottom: 100px solid red;
position: relative;
animation: myfirst 2s linear infinite normal;
-moz-animation: myfirst 2s linear infinite normal; /* Firefox: */
-webkit-animation: myfirst 2s linear infinite normal; /* Safari and Chrome: */
-o-animation: myfirst 2s linear infinite normal; /* Opera: */
}

@keyframes myfirst {
0% { transform: rotatez(0deg)}
50% { transform: rotatez(180deg)}
100% { transform: rotatez(360deg)}
}

@-moz-keyframes myfirst /* Firefox */
{
0% { -moz-transform: rotatez(0deg)}
50% { -moz-transform: rotatez(180deg)}
100% { -moz-transform: rotatez(360deg)}
}

@-webkit-keyframes myfirst /* Safari and Chrome */
{
0% { -webkit-transform: rotatez(0deg)}
50% { -webkit-transform: rotatez(180deg)}
100% { -webkit-transform: rotatez(360deg)}
}

@-o-keyframes myfirst /* Opera */
{
0% { -o-transform: rotatez(0deg)}
50% { -o-transform: rotatez(180deg)}
100% { -o-transform: rotatez(360deg) }
}
</style>
</head>
<body>
<div id="myfirst"></div>
</body>
</html>

转载于:https://www.cnblogs.com/webQdesign/p/5733189.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值