JSFiddle - React, Tailwind, and code Playground
CSS
@keyframes amaze {
from { transform: rotatez(0deg);}
to { transform: rotatez(180deg);}
}
svg {
animation: amaze 4s infinite;
}
JavaScript
var r = ''
for(let i = 0; i < 500; ++i) {
r += `<svg height="10" width="10">
<rect class='wow' width=10 height=5 stroke="black" stroke-width="2" fill="red" />
Sorry, your browser does not support inline SVG.
</svg>
`
}
document.body.innerHTML = r;