动画特效

<!DOCTYPE html>
<html>
 <head> 
  <meta charset="utf-8" /> 
  <title></title> 
  <style>


.wrapper>.jxz{ width: 200px;height: 200px; border-radius: 200px; color: #fff; text-align: center; background: #00FFFF;line-height: 200px ; margin-left: 500px; margin-top: 100px; animation:xz 5s ; animation-timing-function:linear; animation-iteration-count:infinite;-webkit-box-reflect: below; font-size: 30px;}  


.wrapper>#wjx {margin: 50px 0; position: relative;display: block; color: red; width: 0px; height: 0px;border-right: 100px solid transparent;border-bottom: 70px solid red;border-left: 100px solid transparent;-moz-transform: rotate(35deg); -webkit-transform: rotate(35deg);-ms-transform: rotate(35deg);-o-transform: rotate(35deg); animation:wjx 8s ; animation-timing-function:linear; animation-iteration-count:infinite; position: absolute;}
.wrapper>#wjx:before { border-bottom: 80px solid red; border-left: 30px solid transparent; border-right: 30px solid transparent; position: absolute;height: 0; width: 0; top: -45px;left: -65px;display: block; content:""; -webkit-transform: rotate(-35deg); -moz-transform: rotate(-35deg); -ms-transform:rotate(-35deg); -o-transform: rotate(-35deg);}
.wrapper>#wjx:after {position: absolute; display: block; color: red; top: 3px;left: -105px;width: 0px;height: 0px;border-right: 100px solid transparent;border-bottom: 70px solid red;border-left: 100px solid transparent;-webkit-transform: rotate(-70deg);-moz-transform: rotate(-70deg); -ms-transform: rotate(-70deg); -o-transform:rotate(-70deg);content:"";}


.wrapper>.wz{ width: 100px;height: 100px; border-radius: 100px; background: blueviolet; position: absolute; margin: 0 0 0 1000px; animation:xxxx 8s ; animation-timing-function:linear; animation-iteration-count:infinite;}




@keyframes xz{


from{ transform: rotate(0deg); background: #FF0000;}to{ transform: rotate(360deg); background: #00FFFF;}
}
@keyframes wjx{
from{ transform: rotate(0deg);}to{ transform: rotate(360deg);}


}
}
@keyframs xxxx{
0%{ background: aquamarine;}
10%{ background: blue; left: 40px; top: 40px; transform: rotate(20deg);}
20%{ background: aquamarine; left: 80px; top: 80px; transform: rotate(40deg);}
30%{ background: blanchedalmond; left: 160px; top: 120px;transform: rotate(60deg);}
40%{ background-color: burlywood; left: 320px;top: 160px;transform: rotate(80deg);}
50%{ background-color: darkred; left: 640px;top:200px;transform: rotate(120deg);}
60%{ background-color: darkviolet; left: 1280px;top: 240px;transform: rotate(160deg);}
70%{ background-color: blueviolet; left: 640px;top: 280px;transform: rotate(200deg);}
80%{ background-color: darkmagenta; left: 320px;top: 320px;transform: rotate(240deg);}
90%{ background: darkblue; left: 160px;top: 360px;transform: rotate(280deg);}
100%{ background: #000; left: 120px; top: 400px;transform: rotate(320deg);}g);}
}


</style>
 </head>  
 <body> 
  <div class="wrapper"> 
   <div class="jxz">
    love u
   </div> 
   <div id="wjx"></div> 
   <div class="wz"></div> 
  </div>  
 </body>
</html>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值