图片旋转css

封闭日久的心,遇见你之后,冰川融化,万木回春。

我的github: 李大玄
我的私人博客: 李大玄
我的npm开源库: 李大玄
我的简书: 李大玄
我的CSDN: 李大玄
我的掘金: 李大玄
哔哩哔哩: 李大玄

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>图片循环旋转</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        .ta_c {
            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 10s linear infinite;
            -moz-animation: rotation 10s linear infinite;
            -webkit-animation: rotation 10s linear infinite;
            -o-animation: rotation 10s linear infinite;
        }
        .img {
            border-radius: 250px;
        }
    </style>
</head>
<body>
    <div class="ta_c">
        <img class="Rotation img" src="https://dss2.bdstatic.com/kfoZeXSm1A5BphGlnYG/skin/881.jpg?2" width="500"
            height="500" />
    </div>
</body>
</html>
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容