码迷,mamicode.com
首页 > Web开发 > 详细

css 让背景图片不停旋转

时间:2018-07-29 00:08:20      阅读:1658      评论:0      收藏:0      [点我收藏+]

标签:utf-8   head   nim   doc   idt   rom   背景图   set   bsp   

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

        .Rotation {
            -webkit-transform: rotate(360deg);
            animation: rotation 8s linear infinite;
            -moz-animation: rotation 8s linear infinite;
            -webkit-animation: rotation 8s linear infinite;
            -o-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>

 

css 让背景图片不停旋转

标签:utf-8   head   nim   doc   idt   rom   背景图   set   bsp   

原文地址:https://www.cnblogs.com/supery007/p/9383847.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!