实现的效果:
实现的代码:
<style>
.bag{
width: 370px;
height: 600px;
background: url('./Group_1486.png') center repeat pink;
animation: auto 1s linear infinite;
}
@keyframes auto{
0%{
background-position-y:500px;
}
100%{
background-position-y:-500px;
}
}
</style>
<body>
<div class="bag">5656</div>
</body>