Copiei um trecho de código daqui: https://blog.hubspot.com/website/svg-css-animation mas não consigo fazê-lo funcionar. o que estou perdendo?
<svg width="100px" height="100px">
<rect x="10" y="10" width="80" height="80" fill="#f7f3d1" css-transition: all 1s ease; css-animation: rotate 5s infinite linear />
</svg>
Bem, o trecho já mostra que a sintaxe é inválida:
O estilo embutido usa
key=value
formato.Se você não quiser especificar nenhum ponto-chave, você pode usar o
<animateTransform>
elemento SVG para girar o<rect>