zoukankan      html  css  js  c++  java
  • CSS3组件化之ios版菊花loading

    <div class="juhua-loading">
      <div class="jh-circle1 jh-circle-ios"></div>
      <div class="jh-circle2 jh-circle-ios"></div>
      <div class="jh-circle3 jh-circle-ios"></div>
      <div class="jh-circle4 jh-circle-ios"></div>
      <div class="jh-circle5 jh-circle-ios"></div>
      <div class="jh-circle6 jh-circle-ios"></div>
      <div class="jh-circle7 jh-circle-ios"></div>
      <div class="jh-circle8 jh-circle-ios"></div>
      <div class="jh-circle9 jh-circle-ios"></div>
      <div class="jh-circle10 jh-circle-ios"></div>
      <div class="jh-circle11 jh-circle-ios"></div>
      <div class="jh-circle12 jh-circle-ios"></div>
    </div>
    .juhua-loading {
        position: relative;
        margin: 5px auto;
        width: 30px;
        height: 30px;
    }
    
    .juhua-loading .jh-circle-ios {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
    }
    
    .juhua-loading .jh-circle-ios:before {
        content: '';
        display: block;
        margin: 5% auto;
        width: 5.5%;
        height: 25%;
        background-color: #999;
        -webkit-animation: jh-circleFadeDelay-ios 1.2s infinite ease-in-out both;
        animation: jh-circleFadeDelay-ios 1.2s infinite ease-in-out both;
    }
    
    .juhua-loading .jh-circle2 {
        -webkit-transform: rotate(30deg);
        -ms-transform: rotate(30deg);
        transform: rotate(30deg);
    }
    
    .juhua-loading .jh-circle3 {
        -webkit-transform: rotate(60deg);
        -ms-transform: rotate(60deg);
        transform: rotate(60deg);
    }
    
    .juhua-loading .jh-circle4 {
        -webkit-transform: rotate(90deg);
        -ms-transform: rotate(90deg);
        transform: rotate(90deg);
    }
    
    .juhua-loading .jh-circle5 {
        -webkit-transform: rotate(120deg);
        -ms-transform: rotate(120deg);
        transform: rotate(120deg);
    }
    
    .juhua-loading .jh-circle6 {
        -webkit-transform: rotate(150deg);
        -ms-transform: rotate(150deg);
        transform: rotate(150deg);
    }
    
    .juhua-loading .jh-circle7 {
        -webkit-transform: rotate(180deg);
        -ms-transform: rotate(180deg);
        transform: rotate(180deg);
    }
    
    .juhua-loading .jh-circle8 {
        -webkit-transform: rotate(210deg);
        -ms-transform: rotate(210deg);
        transform: rotate(210deg);
    }
    
    .juhua-loading .jh-circle9 {
        -webkit-transform: rotate(240deg);
        -ms-transform: rotate(240deg);
        transform: rotate(240deg);
    }
    
    .juhua-loading .jh-circle10 {
        -webkit-transform: rotate(270deg);
        -ms-transform: rotate(270deg);
        transform: rotate(270deg);
    }
    
    .juhua-loading .jh-circle11 {
        -webkit-transform: rotate(300deg);
        -ms-transform: rotate(300deg);
        transform: rotate(300deg);
    }
    
    .juhua-loading .jh-circle12 {
        -webkit-transform: rotate(330deg);
        -ms-transform: rotate(330deg);
        transform: rotate(330deg);
    }
    
    .juhua-loading .jh-circle2:before {
        -webkit-animation-delay: -1.1s;
        animation-delay: -1.1s;
    }
    
    .juhua-loading .jh-circle3:before {
        -webkit-animation-delay: -1s;
        animation-delay: -1s;
    }
    
    .juhua-loading .jh-circle4:before {
        -webkit-animation-delay: -0.9s;
        animation-delay: -0.9s;
    }
    
    .juhua-loading .jh-circle5:before {
        -webkit-animation-delay: -0.8s;
        animation-delay: -0.8s;
    }
    
    .juhua-loading .jh-circle6:before {
        -webkit-animation-delay: -0.7s;
        animation-delay: -0.7s;
    }
    
    .juhua-loading .jh-circle7:before {
        -webkit-animation-delay: -0.6s;
        animation-delay: -0.6s;
    }
    
    .juhua-loading .jh-circle8:before {
        -webkit-animation-delay: -0.5s;
        animation-delay: -0.5s;
    }
    
    .juhua-loading .jh-circle9:before {
        -webkit-animation-delay: -0.4s;
        animation-delay: -0.4s;
    }
    
    .juhua-loading .jh-circle10:before {
        -webkit-animation-delay: -0.3s;
        animation-delay: -0.3s;
    }
    
    .juhua-loading .jh-circle11:before {
        -webkit-animation-delay: -0.2s;
        animation-delay: -0.2s;
    }
    
    .juhua-loading .jh-circle12:before {
        -webkit-animation-delay: -0.1s;
        animation-delay: -0.1s;
    }
    
    @-webkit-keyframes jh-circleFadeDelay-ios {
        0%,
        39%,
        100% {
            opacity: .3;
        }
        40% {
            opacity: 1;
        }
    }
    
    @keyframes jh-circleFadeDelay-ios {
        0%,
        39%,
        100% {
            opacity: .3;
        }
        40% {
            opacity: 1;
        }
    }
  • 相关阅读:
    Duang~Duang~Duang 还在使用jsfiddle和jsbin做在线前端代码展示和演示吗? 试试更强大的在线代码分享工具吧!
    如数据库一般访问互联网资源
    HTML5来了,7个混合式移动开发框架
    Three.js纹理贴图正方体旋转动画效果
    极客Web开发资源大荟萃#003
    精彩代码回放:jQuery实现的浏览器类型和版本检测
    响应式的全屏背景图片效果
    Delphi多线程编程之同步读写全局数据
    delphi与sqlite
    Delphi调用IE打开网页
  • 原文地址:https://www.cnblogs.com/camille666/p/css3_plugins_juhua_loading_ios.html
Copyright © 2011-2022 走看看