欢迎来到DIVCSS5查找CSS资料与学习DIV CSS布局技术!
css 动画 div顺时针方向移动
 
<!DOCTYPE html>
<html lang="en">
 
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        * {
            padding: 0;
            margin: 0;
        }
 
        div {
            width: 100px;
            height: 100px;
            background: linear-gradient(to bottom, #00a4ff, #1c036c);
            animation: yidong linear 2s infinite;
        }
        @keyframes yidong {
            0% {
                transform: translate(0px, 0px);
            }
 
            25% {
                transform: translate(440px, 0px);
            }
 
            50% {
                transform: translate(440px, 440px);
            }
 
            75% {
                transform: translate(0px, 440px);
            }
 
            100% {
                transform: translate(0px, 0px);
            }
        }
    </style>
</head>
 
<body>
    <div>
    </div>
</body>
</html>

如需转载,请注明文章出处和来源网址:http://www.divcss5.com/html/h64701.shtml