Rotate a block in CSS

Just copy and paste

.rotate {
animation: rotation 1s infinite linear;
}

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

Leave a Reply

Your email address will not be published. Required fields are marked *