I have a svg icon and I want to make it spin (load). Is this possible? I've found online sites that they can create rotating icons but I haven't found a converter that will make an existing svg icon to spin.
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(359deg); }
}
#star {
animation: spin 2s linear infinite;
}
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg id=star width="4cm" height="4cm" viewBox="0 0 700 400" xmlns="http://www.w3.org/2000/svg" version="1.1">
<polygon fill="red" stroke="red" stroke-width="10"
points="350,75 379,161 469,161 397,215
423,301 350,250 277,301 303,215
231,161 321,161" />
</svg>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With