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

css3 图标上下移动动画

时间:2014-12-05 17:02:52      阅读:364      评论:0      收藏:0      [点我收藏+]

标签:blog   io   ar   sp   for   on   div   log   bs   

@-webkit-keyframes bird{
     0% {
         -moz-transform: translate(0,0);
	     -webkit-transform: translate(0,0);
	     -o-transform: translate(0,0);
	     -ms-transform: translate(0, 0);
	     transform: translate(0,0);
     }

     25% {
         -moz-transform: translate(0,-10px);
	     -webkit-transform: translate(0,-10px);
	     -o-transform: translate(0,-10px);
	     -ms-transform: translate(0, -10px);
	     transform: translate(0,-10px);
     }
     50% {
         -moz-transform: translate(0,-20px);
	     -webkit-transform: translate(0,-20px);
	     -o-transform: translate(0,-20px);
	     -ms-transform: translate(0, -20px);
	     transform: translate(0,-20px);
     }

      75% {
         -moz-transform: translate(0,-10px);
	     -webkit-transform: translate(0,-10px);
	     -o-transform: translate(0,-10px);
	     -ms-transform: translate(0, -10px);
	     transform: translate(0,-10px);
     }

      100% {
         -moz-transform: translate(0,0);
	     -webkit-transform: translate(0,0);
	     -o-transform: translate(0,0);
	     -ms-transform: translate(0, 0);
	     transform: translate(0,0);
     }
}

  

 

.qi:not(:target),.birds:not(:target),.hong:not(:target){
	-webkit-animation-name: bird;
	-webkit-animation-duration: 5s;
	-webkit-animation-timing-function: linear;
	-webkit-animation-iteration-count: infinite;
	-moz-animation-name: bird;
	-moz-animation-duration: 5s;
	-moz-animation-timing-function: linear;
	-moz-animation-iteration-count: infinite;
	-o-animation-name: bird;
	-o-animation-duration: 5s;
	-o-animation-timing-function: linear;
	-o-animation-iteration-count: infinite;
	-ms-animation-name: bird;
	-ms-animation-duration: 5s;
	-ms-animation-timing-function: linear;
	-ms-animation-iteration-count: infinite;
	animation-name: bird;
	animation-duration: 5s;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}

  

css3 图标上下移动动画

标签:blog   io   ar   sp   for   on   div   log   bs   

原文地址:http://www.cnblogs.com/xupeiyu/p/4146841.html

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