html结构参考
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
div{
width: 122px;
height: 180px;
background-image: url(../小雪人.jpg);
animation: move 1s infinite steps(1);
}
@keyframes move{
0%{
}
25%{
background-position: 122px 0;
}
50%{
background-position: 244px 0;
}
100%{
background-position: 366px 0;
}
}
</style>
</head>
<body>
<div></div>
</body>
</html>