图片旋转

HTML代码:
<img src="图片链接" class="zzz_img">
CSS代码:
<style>
.zzz_img {
display: block;
animation: rotate 30s linear infinite;
transform-origin:center;
}
@keyframes rotate{
0%{
transform: rotate(0deg);

} 100%{ transform: rotate(360deg); } } .zzz_img { padding: 15px; border-radius: 50% !important; height:300px; width:300px; object-fit: cover; } </style>