码迷,mamicode.com
首页 > Web开发 > 详细

css旋转

时间:2017-09-30 14:56:40      阅读:211      评论:0      收藏:0      [点我收藏+]

标签:dir   state   san   frame   height   ini   direction   cti   效果   

 -webkit-animation:run 6s linear 0s infinite;

语法:

animation: name duration timing-function delay iteration-count direction; 
name:是@-webkit-keyframes中需要指定的方法,用来执行动画
duration:动画一个周期执行的时长
timing-function:动画执行的效果,可以是线性的,也可以使“快进慢出的”
delay:动画延迟的时间
iteration-count:动画循环的次数,如果是infinite,则无限循环
direction:动画执行的方向

.xz{
            width:280px;
            height:279px;
            background:url("http://sandbox.runjs.cn/uploads/rs/115/qmcnjqkc/nt2.png") no-repeat;
            border-radius:140px;
            -webkit-animation:run 6s linear 0s infinite;
        }
        .xz:hover{
            -webkit-animation-play-state:paused;
        }
        @-webkit-keyframes run{
            from{
                -webkit-transform:rotate(0deg);
            }
            to{
                -webkit-transform:rotate(360deg);
            }
        }
<div class="xz"></div>

 

 
 
 


 

css旋转

标签:dir   state   san   frame   height   ini   direction   cti   效果   

原文地址:http://www.cnblogs.com/xingxuexue/p/7614598.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!