<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
.box{
width: 170px;
height: 170px;
background: url(img/swk.png);
position: absolute;
right: 0;
animation: box 2ms steps(7) infinite,box1 8s ease-in-out infinite;
}
.box-1{
width: 170px;
height: 170px;
background: url(img/swk.png);
position: absolute;
right: 0;
animation: box 111ms steps(7) infinite;
margin-top: 200px;
}
@-webkit-keyframes box{
from{
background-position: 0 0;
}
to{
background-position: -1400px 0;
}
}
@-webkit-keyframes box1{
from{
transform: translateX(0);
}
to{
transform: translateX(-2000px);
}
}
</style>
</head>
<body>
<div class="box"></div>
<div class="box-1"></div>
</body>
</html>
动画3
最新推荐文章于 2022-05-07 16:32:10 发布