您好,欢迎来到源码搜藏!分享精神,快乐你我!提示:担心找不到本站?在百度搜索“源码搜藏”,网址永远不丢失!
  • 首 页
  • 在线工具
  • 当前位置:首页 > 网页特效 > css3特效 >

    CSS3页面加载Loading动画

    时间:2014-06-06 17:38 来源:互联网 作者:源码搜藏 浏览:收藏 挑错 推荐 打印
    效果预览 进入下载地址列表
    CSS3页面加载Loading动画CSS3页面加载Loading动画是一款很酷的CSS3 Loading加载动画,这款Loading动画非常特别,是两行渐变的矩形,需要说明的是,这款CSS3 Loading动画非常适合整个页面加载时的等待提示,页面加载完这个Loading动画即可消失。CSS3页面加载Loading加载动画

    <style>
    @keyframes left {
      0% {
        background: blue;
        transform: rotateX(90deg);
      }
     
      50% {
        background: white;
        transform: translate(200px, 0px) rotateX(0deg);
      }
     
      100% {
        background: red;
        transform: translate(0px, 0px) rotateX(90deg) scale(1.8);
        opacity: .1;
      }
    }
    @keyframes right {
      0% {
        background: red;
        transform: rotateX(90deg);
      }
     
      50% {
        background: white;
        transform: translate(-200px, 0px) rotateX(0deg);
      }
     
      100% {
        background: blue;
        transform: translate(0px, 0px) rotateX(90deg) scale(1.8);
        opacity: .1;
      }
    }
    body {
      background: black;
    }
     
    .square {
      opacity: .6;
      position: absolute;
      top: 0;
      left: 0;
      bottom: 0;
      right: 0;
      width: 40px;
      height: 40px;
      margin: auto;
      background: black;
    }
    .square:nth-child(1) {
      animation: left 6s infinite;
    }
    .square:nth-child(2) {
      animation: left 6s .2s infinite;
    }
    .square:nth-child(3) {
      animation: left 6s .4s infinite;
    }
    .square:nth-child(4) {
      animation: left 6s .6s infinite;
    }
    .square:nth-child(5) {
      animation: left 6s .8s infinite;
    }
    .square:nth-child(6) {
      animation: right 6s  infinite;
    }
    .square:nth-child(7) {
      animation: right 6s .2s infinite;
    }
    .square:nth-child(8) {
      animation: right 6s .4s infinite;
    }
    .square:nth-child(9) {
      animation: right 6s .6s infinite;
    }
    .square:nth-child(10) {
      animation: right 6s .8s infinite;
    }
     
    </style>
    CSS3页面加载Loading动画由源码搜藏网整理,转载请注明出处http://www.codesocang.com/texiao/css3texiao/8416.html 源码搜藏承诺:本站所有资源无病毒,无弹窗,无干扰链接!