zoukankan      html  css  js  c++  java
  • css3 循环旋转

    <!DOCTYPE html>
    <html lang="en">
    <head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
    body{
        padding: 100px;
        background-color: #000;
    }
    .box{
        width: 200px;
        height: 200px;
        background-color: #eee;
        position: relative;
        border-radius: 50%;
        -webkit-animation: wheel-rotate 2s linear infinite;
        -moz-animation: wheel-rotate 2s linear infinite;
        animation: wheel-rotate 2s linear infinite;
    }
    @-webkit-keyframes wheel-rotate {
        from{
            -webkit-transform: rotate(0deg);
        }
        to{
            -webkit-transform: rotate(360deg);
        }
    }
    @keyframes wheel-rotate {
        from{
            transform: rotate(0deg);
        }
        to{
            transform: rotate(360deg);
        }
    }
    @-moz-keyframes wheel-rotate {
        from{
            -moz-transform: rotate(0deg);
        }
        to{
            -moz-transform: rotate(360deg);
        }
    }
    .box:after{
        display: block;
        content: "";
        width: 10px;
        height: 10px;
        position: absolute;
        left: 30px;
        top: 30px;
        background-color: blue;
    }
    </style>
    </head>
    <body>
        <div class="box"></div>
    </body>
    </html>

    高否?富否?帅否? 否? 滚去学习!
  • 相关阅读:
    STL——pair
    STL——stack
    Python学习之编程基础
    开学第一课,课课有总结
    DNS域名解析
    FTP文件传输服务
    DHCP原理及配置
    Linux中配置网卡
    indoe与block解析
    Linux系统安全管理
  • 原文地址:https://www.cnblogs.com/baixc/p/4349520.html
Copyright © 2011-2022 走看看