<!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>
#box {
width: 39.5px;
height: 39.5px;
overflow: hidden;
background-image: url('./img/地球.png');
animation: turn 2s steps(48) infinite;
}
@keyframes turn {
from {
background-position: 0 0;
}
to {
background-position: -1890px 0;
}
}
</style>
</head>
<body>
<div id="box"></div>
</body>
</html>