zoukankan      html  css  js  c++  java
  • HTML加CSS3太极图demo

    <!DOCTYPE html>
    <html>
    
        <head>
            <meta charset="UTF-8">
            <title></title>
        </head>
        <style type="text/css">
            .wrapper {
                width: 300px;
                height: 300px;
                position: absolute;
                top: 0;
                left: 0;
                bottom: 0;
                right: 0;
                margin: auto;
                animation: move 10s infinite linear;
                /*border: 1px solid red;*/
            }
            
            @keyframes move {
                from {
                    transform: rotate(0deg);
                }
                to {
                    transform: rotate(360deg);
                }
            }
            
            .circleFB {
                width: 300px;
                height: 300px;
                background-color: #000000;
                position: absolute;
                top: 0;
                border-radius: 50%;
            }
            
            .circleSB {
                width: 150px;
                height: 300px;
                background-color: white;
                border-radius: 0 150px 150px 0;
                position: absolute;
                top: 0;
                right: 0;
            }
            
            .circleFB1 {
                width: 150px;
                height: 150px;
                background-color: #000000;
                border-radius: 50%;
                position: absolute;
                left: 75px;
            }
            
            .circleFB2 {
                width: 150px;
                height: 150px;
                background-color: white;
                border-radius: 50%;
                position: absolute;
                left: 75px;
                bottom: 0px;
            }
            
            #samllW {
                width: 40px;
                height: 40px;
                border-radius: 50%;
                background-color: white;
                position: absolute;
                left: 55px;
                top: 55px;
            }
            
            #samllB {
                width: 40px;
                height: 40px;
                border-radius: 50%;
                background-color: #000000;
                position: absolute;
                left: 55px;
                bottom: 55px;
            }
        </style>
    
        <body>
            <div class="wrapper">
                <div class="circleFB"></div>
                <div class="circleSB"></div>
                <div class="circleFB1">
                    <div id="samllW"></div>
                </div>
                <div class="circleFB2">
                    <div id="samllB"></div>
                </div>
    
            </div>
        </body>
    
    </html>

    效果:

  • 相关阅读:
    angular4浏览器兼容问题
    angular4组件生命周期
    angular4路由
    CDH 安装配置指南(Tarball方式)
    nginx-1.14.0安装
    redis-3.0.6安装
    CDH安装kafka
    CDH配置JAVA_HOME
    ntp集群时间同步
    VMware联网
  • 原文地址:https://www.cnblogs.com/xiejn/p/11931279.html
Copyright © 2011-2022 走看看