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;
        }
    }
  • 相关阅读:
    【事件类】雅思口语
    【人物类】雅思口语
    【物品类】雅思口语
    Cassandra (二)Java | scala操作
    rpm安装在哪里了?
    用IDEA创建springboot项目遇到的问题Plugin 'org.springframework.boot:spring-boot-maven-plugin:' not found
    JDBC连接mysql出现The server time zone value '�й���׼ʱ��' is unrecognized
    Java反射、注解
    Junit单元测试
    Java-线程池、匿名内部类、Lambda表达式
  • 原文地址:https://www.cnblogs.com/camille666/p/css3_plugins_juhua_loading_ios.html
Copyright © 2011-2022 走看看