zoukankan      html  css  js  c++  java
  • 纯css让背景图片不停围绕中心旋转

    效果图:

    
    
    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Title</title>
        <style>
            .logo {
                text-align: center;
                margin-top: 100px;
            }
            @keyframes rotation {
                from {
                    transform: rotate(0deg);
                }
                to {
                    transform: rotate(360deg);
                }
            }

            .Rotation {
                transform: rotate(360deg);
                animation: rotation 8s linear infinite;
               
            }

            .img {
                border-radius: 200px;
            }
        </style>
    </head>

    <body>
    <div class="logo">
        <img class="Rotation img" src="http://cdn.jingqueyun.com/turntable/image/theme/theme2/turntable-outer-bg2.png" width="128" height="128"/>
    </div>
    </body>
    </html>
     
  • 相关阅读:
    学习资料
    InstallShield常用工具
    InstallShield中调用API
    系统目录
    abort和exit
    Uninstall Registry Key
    GDI+资料
    VBScript是什么?有什么优缺点?
    DrawImage调查
    KEIL MDK环境下uCOSII在LPC17xx上的移植实例 Chung
  • 原文地址:https://www.cnblogs.com/DZzzz/p/13278445.html
Copyright © 2011-2022 走看看