<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
body {
background-color: #333;
}
.xiongda {
position: absolute;
width: 200px;
height: 100px;
margin: px auto;
background: url(../源码以及素材/media/bear.png) no-repeat;
animation: run 0.5s steps(8) infinite, move 2.5s linear forwards;
}
@keyframes run {
0% {
background-position: 0 0;
}
100% {
background-position: -1600px 0;
}
}
@keyframes move {
0% {
left: 0;
}
100% {
left: 50%;
transform: translate(-50%);
}
}
</style>
</head>
<body>
<div class="xiongda"></div>
</body>
</html>
03-15
1392
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
06-09