上代码 👇
<body>
<img src="./img/loading.svg" alt="">
</body>
<style>
img{
animation: rotation 2s linear infinite;
}
@keyframes rotation{
from {transform: rotate(0deg)}
to {transform: rotate(360deg)}
}
</style>
上代码 👇
<body>
<img src="./img/loading.svg" alt="">
</body>
<style>
img{
animation: rotation 2s linear infinite;
}
@keyframes rotation{
from {transform: rotate(0deg)}
to {transform: rotate(360deg)}
}
</style>