• 八卦旋转


    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>CSS3旋转的太极</title>
    <style>
    .taiji {
    margin:50px auto 0;
    height:200px;
    200px;
    animation:run-inner 2s infinite linear;
    }
    @keyframes run-inner {
    0% {
    transform:rotate(0deg)
    }
    25% {
    transform:rotate(-90deg)
    }
    50% {
    transform:rotate(-180deg)
    }
    75% {
    transform:rotate(-270deg)
    }
    100% {
    transform:rotate(-360deg)
    }
    }.a {
    200px;
    height:100px;
    border:1px solid #D3D3D3;
    border-bottom:0px;
    border-radius:100px 100px 0 0;
    background:#fff;
    position:relative;
    }
    .a:after {
    content:"";
    background:#fff;
    15px;
    height:15px;
    border-radius:50%;
    position:absolute;
    top:72px;
    left:147px;
    }
    .a .inner {
    100px;
    height:50px;
    position:absolute;
    bottom:0;
    right:0;
    background:#000;
    border-radius:50px 50px 0 0;
    }
    .b {
    201px;
    height:101px;
    border:1px solid #D3D3D3;
    border-top:0px;
    border-radius:0 0 100px 100px;
    background:#000;
    position:relative;
    }
    .b:after {
    content:"";
    background:#000;
    15px;
    height:15px;
    border-radius:50%;
    position:absolute;
    bottom:72px;
    right:147px;
    }
    .b .inner {
    100px;
    height:50px;
    position:absolute;
    top:0;
    left:0;
    background:#fff;
    border-radius:0 0 50px 50px;
    }
    </style>
    </head>
    <body>
    <div class="taiji">
    <div class="a">
    <div class="inner">
    </div>
    </div>
    <div class="b">
    <div class="inner">
    </div>
    </div>
    </div>
    <script>
    </script>
    </body>
    </html>

  • 相关阅读:
    面试精选:链表问题集锦
    经典排序算法总结与实现 ---python
    Python高级编程–正则表达式(习题)
    Python面试题汇总
    Python正则表达式
    Linux下的Libsvm使用历程录
    在 linux(ubuntu) 下 安装 LibSVM
    过拟合
    百度历年笔试面试150题
    MATLAB 的数据类型
  • 原文地址:https://www.cnblogs.com/gg123/p/7091809.html
Copyright © 2020-2023  润新知