zoukankan      html  css  js  c++  java
  • 八卦图绕圆旋转

    <!DOCTYPE html>
    <html>
    <head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <style>

    //动画旋转
    @keyframes bagua{
    100%{transform:rotate(1080deg)}
    }

    //适配浏览器
    @-webkit-keyframes bagua{
    100%{transform:rotate(1080deg)}

    }
    #div {
    96px;
    height: 48px;
    background: white;
    border-color: #000000;
    border-style: solid;
    border- 2px 2px 50px 2px;
    border-radius: 100%;
    position: relative;
    left:130px;
    top:30px;
    transform-origin:150px 260px;
    animation:bagua 8s;
    -webkit-animation:bagua 8s liner infinite normal;

    }
    #div:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    background: white;
    border: 18px solid black;
    border-radius: 100%;
    12px;
    height: 12px;
    }

    #div:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    background: #000000;
    border: 18px solid white;
    border-radius:100%;
    12px;
    height: 12px;

    }
    #mydiv{
    600px;
    height: 600px;
    border:1px solid gray;
    border-radius: 50%;
    /* animation:bagua 8s;
    -webkit-animation:bagua 8s liner infinite normal ;*/
    }
    </style>
    </head>
    <body>
    <div id="mydiv">
    <div id="div">

    </div>
    </div>
    </body>
    </html>

  • 相关阅读:
    并发和并行的区别
    fiddler-打断点(bpu)
    fiddler操作
    fiddler手机抓包
    面试题1
    Linux查看日志常用命令
    HTMLTestRunner
    mysql数据库无法插入特殊字符报错
    mybatis解决属性名和数据库字段名不一致问题
    Vue路由的使用简单实例
  • 原文地址:https://www.cnblogs.com/223y/p/5747416.html
Copyright © 2011-2022 走看看