zoukankan      html  css  js  c++  java
  • 让图标转起来

    <!DOCTYPE html>
    
    <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta charset="utf-8" />
        <title>Rock</title>
        <style type="text/css">
            body {
                background: #21122f;
            }
            .music {
                width: 64px;
                height: 64px;
                background: url(http://dn-h6app.qbox.me/data/case/youku/images/music.png) no-repeat center center;
                background-size: 100%;
            }
            .play {
                animation: r 1.2s linear infinite;
                -webkit-animation: r 1.2s linear infinite;
            }
            @keyframes r {
                0% {
                    transform: rotate(0);
                }
    
                100% {
                    transform: rotate(-360deg);
                }
            }
    
            @-webkit-keyframes r {
                0% {
                    -webkit-transform: rotate(0);
                }
    
                100% {
                    -webkit-transform: rotate(-360deg);
                }
            }
        </style>
    </head>
    <body>
        <div class="music play"></div>
    </body>
    </html>

    Rock

     
  • 相关阅读:
    Zoundry Raven测试
    asp.net 异步加载?
    网页数据表格自动填充序号
    1.JSP
    C#基础之CLR的执行模型(二)
    C#基础之CLR的执行模型(一)
    java提供类与cglib包实现动态代理
    CSS初窥...
    Go的牛逼之处
    Go灵魂级选手之流程控制
  • 原文地址:https://www.cnblogs.com/goodspeed/p/4240367.html
Copyright © 2011-2022 走看看