I have the following animation applied to my simple SVG:
@keyframes rotate {
100% {
-webkit-transform: rotateZ(360deg);
-ms-transform: rotateZ(360deg);
-o-transform: rotateZ(360deg);
transform: rotateZ(360deg);
}
}
.keepRotatingOne {
-webkit-animation-name: rotate;
-o-animation-name: rotate;
animation-name: rotate;
-webkit-animation-duration: 3s;
-o-animation-duration: 3s;
animation-duration: 3s;
-webkit-animation-iteration-count: infinite;
-o-animation-iteration-count: infinite;
animation-iteration-count: infinite;
}
Basically i need the outer most ring of my SVG to rotate in a circular motion , by staying in its current place ,whats happening right now is that, the outer ring is not staying in its current place, but rater rotating away. FIDDLE HERE
If i apply the above animation to a to a div
element however, it works perfectly fine, SEE HERE.
So why is the animation not working on the SVG ? It would be nice if somebody could explain why its not working and also give me a solution to circumvent this problem.