Why animation can't works 😕. (line 39) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why animation can't works 😕. (line 39)

https://code.sololearn.com/Wc7ZMQYtRkOG/?ref=app

23rd Jun 2021, 2:58 PM
Aditya Dhiman
Aditya Dhiman - avatar
2 Answers
+ 3
a slash (/) ending a tag is kind of shortcut to avoid writing the closing tag of an content empty element (in svg): <rect attributes /> is same as: <rect attributes></rect> if you need to nest other elements inside, you must use the second form: <rect attributes> <animate attributes /> </rect> else: <rect attributes /> <animate attributes /> is same as: <rect attributes></rect> <animate attributes /> so animate do not belong to rect element ^^
24th Jun 2021, 1:17 AM
visph
visph - avatar
+ 2
Remove the "/" From the rect tag ending above animate
23rd Jun 2021, 4:10 PM
Abhay
Abhay - avatar