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

CSS里面常用的动画集合

时间:2014-12-29 20:02:18      阅读:219      评论:0      收藏:0      [点我收藏+]

标签:

/* 印章效果 */

@-webkit-keyframes zoomIn {
  0% {
      opacity:0;
    -webkit-transform: scale3d(10, 10, 10);
            transform: scale3d(10, 10,10);
  }
  1%{
  }
 100% {
      opacity:1;
    -webkit-transform: scale3d(1, 1, 1);
            transform: scale3d(1, 1,1);
  }
}

@keyframes zoomIn {
  0% {
      opacity:0;
    -webkit-transform: scale3d(10, 10, 10);
            transform: scale3d(10, 10,10);
  }
  1%{
      opacity:1;
  }
  100% {
  -webkit-transform: scale3d(1, 1, 1);
            transform: scale3d(1, 1, 1);
  }
}

.zoomInPanchu{
    -webkit-animation: zoomIn 0.5s 1.5s both;   
    animation: zoomIn 0.5s 1.5s both;
}

  

/*
*底部箭头
*/
@-webkit-keyframes bounceInUp {
  0%, 50%, 100% {
    -webkit-transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
            transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
  }

  0% {   
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
  }

  50% {
    -webkit-transform: translate3d(0, -15px, 0);
            transform: translate3d(0, -15px, 0);
  }

  100% {
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
  }
}

@keyframes bounceInUp {
   0%, 50%, 100% {
    -webkit-transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
            transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
  }

  0% {
    opacity: 0;
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
  }

  50% {
    opacity: 1;
    -webkit-transform: translate3d(0, -15px, 0);
            transform: translate3d(0, -15px, 0);
  }

  100% {
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
  }
}

.bounceInUp {
  -webkit-animation-name: bounceInUp;
          animation-name: bounceInUp;
  -webkit-animation-duration: 2s;
          animation-duration: 2s;
  -webkit-animation-fill-mode: both;
          animation-fill-mode: both;
  -webkit-animation-iteration-count:infinite;
          animation-iteration-count:infinite;
}

  

 

CSS里面常用的动画集合

标签:

原文地址:http://www.cnblogs.com/leong/p/4192268.html

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