0

Why couldn't I animate a circle with this code?

<svg width="2000" height="2000"> <circle cx="170" cy="60" r="50"fill="green" > <animate attributeName="y" from="0" to ="300" dur="2s" repeatCount="2" fill="remove" /> </circle> </svg>

3rd Nov 2017, 11:07 AM
Abdussamad Nasir
Abdussamad Nasir - avatar
1 Answer
+ 4
Because <circle> element have no 'y' attribute to be animated ^^ You should use 'attributeName="cy"'...
3rd Nov 2017, 11:18 AM
visph
visph - avatar