So I have a field .box. This endlessly repeats the rotation animation.
@keyframes spin {
0% {transform:rotate(0deg);}
100% {transform:rotate(360deg);}
}
Animation applies only when the second class name is run.
.box.running {
animation-name:spin;
The purpose of this is that I can easily stop the animation using javascript. (removing the middle name of the class.)
I would like for him to smoothly move from where he is in the animation, back to the normal rotation that is now located 0deg.
Any help would be greatly appreciated.
source
share