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

30th Oct 2019, 4:42 PM
Sabyasachi Pramanik
Sabyasachi Pramanik - avatar
4 Answers
+ 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>
30th Oct 2019, 6:27 PM
dozule
dozule - avatar
+ 2
Cool dozule, so changing: attributeName = "c" To: attributeName = "cx" was the fix for Sabyasachi Pramanik 's code 😄👍
30th Oct 2019, 6:48 PM
will
will - avatar
+ 1
yes, and there was an unnecessary / too here: repeatCount="2"/>
30th Oct 2019, 6:58 PM
dozule
dozule - avatar