Upon loading the page, I have an object with a specific animation:
.logo-mark {
-webkit-animation: spin 2s 1 cubic-bezier(0.000, 0.000, 0.230, 1.000);
-moz-animation: spin 2s 1 cubic-bezier(0.000, 0.000, 0.230, 1.000);
-ms-animation: spin 2s 1 cubic-bezier(0.000, 0.000, 0.230, 1.000);
animation: spin 2s 1 cubic-bezier(0.000, 0.000, 0.230, 1.000);
}
I want JavaScript to trigger a separate animation indefinitely at certain intervals. To achieve this, I created a new class called .logo-loading and utilized jQuery for adding and removing classes when needed.
.logo-loading {
-webkit-animation: spin 4s infinite linear;
-moz-animation: spin 4s infinite linear;
-ms-animation: spin 4s infinite linear;
animation: spin 4s infinite linear;
}
However, even after removing the class using JavaScript, the object continues to rotate endlessly. Is there a solution to prevent this ongoing rotation?