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


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>




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


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