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>
     
  • 相关阅读:
    面向对象案例
    0429面向对象3.0
    Linux系统常用命令以及常见问题的解决方法
    VS2010查看源码对应的汇编语言
    【学习笔记】python
    Linux环境配置错误记录
    【学习笔记】TensorFlow
    git基本操作
    位操作的个人总结
    Java字符串拼接
  • 原文地址:https://www.cnblogs.com/DZzzz/p/13278445.html
Copyright © 2011-2022 走看看