0

Please give a example of animate a SVG circle?

I have failed to animate a SVG circle😭😭😭😭😭 please help me https://code.sololearn.com/WKaEKSccM200/?ref=app

10/30/2019 4:42:30 PM

Sabyasachi Pramanik

4 Answers

New Answer

+2

with your code: <svg><circle cx="80" cy="80" r="50" fill="green"><animate attributeName="cx" from="0" to="300" dur="3s" repeatCount="2"></circle></svg>

+2

https://code.sololearn.com/WFSt8XzLCHq4/?ref=app

+2

Cool dozule, so changing: attributeName = "c" To: attributeName = "cx" was the fix for Sabyasachi Pramanik 's code 😄👍

+1

yes, and there was an unnecessary / too here: repeatCount="2"/>