In this tutorial, we will learn about rotating an image module continuously in using simple CSS code. on your WordPress Divi Website.
Give the CSS class: rotate
CSS code:
.rotate {
animation: rotation 8s infinite linear;
}
@keyframes rotation {
from {
transform: rotate(0deg);
}
to {
transform: rotate(359deg);
}
}
Hope you like the tutorial!
Thank you for sharing, I appreciate it. I had a quick question, how do you change the code to have the image rotate without pausing for a quick sec?