Why my animation code doesn't work? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why my animation code doesn't work?

<svg width="300" height="400"> <circle cx="100" cy="130" r="85" fill="green" style="stroke:red"/> <animate attributeName="fill" from="red" to="yellow" dur="4s" fill="freeze"repeatcount"2"/> </circle> </svg>

11th Jan 2021, 4:17 PM
Morteza Mohammadi
Morteza Mohammadi - avatar
2 Answers
+ 2
Check the "/" before end of opening tag ,remove it and also it's replaceCount="2" <circle cx="100" cy="130" r="85" fill="green" style="stroke:red"/>
11th Jan 2021, 4:40 PM
Abhay
Abhay - avatar
0
It worked. Thank you very much.
11th Jan 2021, 4:48 PM
Morteza Mohammadi
Morteza Mohammadi - avatar