Forum

Image rotation with HTML and CSS

Angefangen von WCode · 0 Antworten
Avatar

WCode


46 w

Gesendet: 21 w
HTML

<img src="https://ik.imagekit.io/ikmedia/rotation-blog/suv-image_CydtbqUYa.jpg" alt="Flatiron Building" />


CSS


img{
width: 300px;
animation: rotation 6s infinite linear;
}

@keyframes rotation {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}


SOURCE - https://codepen.io/imagekit_io/pen/wvmLVOe
Teile auf meiner Timeline