zoukankan      html  css  js  c++  java
  • Css Html 大风车

    <div style = "height:500px;500px;position:static;float:left;">
    <div class="wrap">
    <div class="red"></div>
    <div class="yellow"></div>
    <div class="pink"></div>
    <div class="cyna"></div>
    </div>
    <div class="limb"></div>
    </div>
    <div style = "height:500px;500px;position:static;float:left;">
    <div class="wrap">
    <div class="red"></div>
    <div class="yellow"></div>
    <div class="pink"></div>
    <div class="cyna"></div>
    </div>
    <div class="limb"></div>
    </div>
    <div style = "height:500px;500px;position:static;float:left;">
    <div class="wrap">
    <div class="red"></div>
    <div class="yellow"></div>
    <div class="pink"></div>
    <div class="cyna"></div>
    </div>
    <div class="limb"></div>
    </div>
    <div style = "height:500px;500px;position:static;float:left;">
    <div class="wrap">
    <div class="red"></div>
    <div class="yellow"></div>
    <div class="pink"></div>
    <div class="cyna"></div>
    </div>
    <div class="limb"></div>
    </div>
    <style>
    div{ border-radius: 50%;position: absolute; }
    .red{
    border-top:100px solid red;
    border-right: 100px solid transparent;
    border-bottom: 100px solid transparent;
    border-left: 100px solid red;
    transform:rotate(-45deg);
    left:150px;
    top:50px;
    }
    .yellow{
    border-top:100px solid yellow;
    border-right: 100px solid transparent;
    border-bottom: 100px solid transparent;
    border-left: 100px solid yellow;
    left:250px;
    top:150px;
    transform:rotate(45deg);
    }
    .pink{
    border-top:100px solid pink;
    border-right: 100px solid transparent;
    border-bottom: 100px solid transparent;
    border-left: 100px solid pink;
    left:150px;
    top:250px;
    transform:rotate(135deg);
    }
    .cyna{
    border-top:100px solid cyan;
    border-right: 100px solid transparent;
    border-bottom: 100px solid transparent;
    border-left: 100px solid cyan;
    left:50px;
    top:150px;
    transform:rotate(-135deg);
    }
    @keyframes run{
    from{transform: rotate(0deg);}
    to{transform: rotate(360deg);}
    }
    @-webkit-keyframes run{
    from{transform: rotate(0deg);}
    to{transform: rotate(360deg);}
    }
    .wrap{
    500px;
    height: 500px;
    line-height: 500px;
    text-align: center;
    border-radius: 0;
    position: relative;
    margin:0 auto;
    animation:run 2s linear infinite;
    }
    .limb{
    10px;
    height: 300px;
    border-radius: 0;
    background-color: #000;
    margin: 0 auto;
    left: 245px;
    top: 0;
    margin-top: -250px;
    position: static;
    z-index: -1;
    }
    <style>

  • 相关阅读:
    C# extern关键字的用法
    C#自定义集合类(二)
    C#自定义集合类(一)
    LINQ中交集、并集、差集、去重(十四)
    LINQ中转换操作符(十三)
    Oracle实现连乘和求和
    适配器模式
    HTTP网络协议与手写Web服务容器
    代理模式
    设计模式的几条家规
  • 原文地址:https://www.cnblogs.com/zwcai/p/7619849.html
Copyright © 2011-2022 走看看