Issue
So I wonder how to rotate a image in HTML, normal speed and using a simple trick. Somebody could help me?
\*Dont know how to do it*\
<img src="https://google.com/favicon.ico"
Solution
You can rotate a img using transform
css property
You can try this
img {
transform: rotate(0deg);
animation: rotate 1s infinite;
}
@keyframes rotate {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
<img src="https://google.com/favicon.ico" />
Answered By - Philo
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.