This code not running on my pc, animation doesn't working. please answer, why? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

This code not running on my pc, animation doesn't working. please answer, why?

<svg width="1000" height="250"> <rect width="150" height="150" fill="orange"> <animate attributeName="x" from="0" to="300" dur="3s" fill="freeze" repeatCount="2"/> </rect> </svg>

21st May 2020, 5:41 AM
Shrish
Shrish - avatar
2 Answers
+ 1
This code works as expected for me... Maybe you're using a more or less outdated browser wich doesn't support svg animation ;P Try to update your browser and / or install another one ^^
21st May 2020, 9:26 AM
visph
visph - avatar
0
visph thanks for your suggestions, I hope it will work.
21st May 2020, 3:50 PM
Shrish
Shrish - avatar