I'm having trouble with an animation that works in Firefox but not in Chrome. Despite trying multiple solutions, I have been unable to get it to work.
Here is the code I am using:
#path {
animation-name: turn;
transform-origin: 50px 50px;
-webkit-animation: turn;
-webkit-transform-origin: 50px 50px;
-webkit-animation: turn 2s infinite;
animation: turn 2s infinite;
}
@-webkit-keyframes turn {
100% {
-webkit-transform: rotate(1080deg);
}
}
@keyframes turn {
100% {
transform:rotate(1080deg);
}
}
<svg viewbox="0 0 100 100" id="svg">
<defs>
<linearGradient id="gradient">
<stop offset="26%" stop-color="#632ef4"/>
<stop offset="100%" stop-color="#12ead5"/>
</linearGradient>
</defs>
<path id="path" stroke-linecap="round" stroke-width="15" stroke="url(#gradient)" fill="none" stroke-dasharray="200, 250.2" d="M50 10 a 40 40 0 0 1 0 80 a 40 40 0 0 1 0 -80" transform="scale(1,1) translate(0,0)">
</path>
</svg>
Can someone please assist me? What could be the issue?
-- Edit : After some testing, I discovered that I can actually rotate the object by entering a value less than 360 degrees. I am confused as to why I cannot rotate it 1080 degrees like I can in Firefox...