HTML: Why my circle don't move🤔 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
24th Jul 2019, 5:40 PM
Ander
Ander - avatar
7 Answers
+ 4
try this: <animate attributeName="cx" from="0" to="300" dur="3s" fill="freeze" repeatCount="2">
24th Jul 2019, 6:08 PM
dozule
dozule - avatar
+ 5
Your head is in the wrong place. It should be before the first body tag. You also need to add a </html> at the end.
24th Jul 2019, 6:06 PM
Green Ghost
Green Ghost - avatar
+ 3
Thanks dozule, that's work it"s logic!👍 Thanks Green Ghost, that was begginers error.😁
24th Jul 2019, 6:11 PM
Ander
Ander - avatar
+ 2
You're welcome. Copy this after the animation tag just for fun: </animate> <animate attributeName="opacity" from="1" to="0" dur="3s" repeatCount="indefinite"></animate>
24th Jul 2019, 6:20 PM
dozule
dozule - avatar
+ 2
Usefull but not for my project. Good to learn https://code.sololearn.com/Wp8a3oKR9AWc/?ref=app
24th Jul 2019, 6:26 PM
Ander
Ander - avatar
+ 2
Great. Congrats. You should delete the unnecessary / here: repeatCount="2"/> And you forgot the comment after that.
24th Jul 2019, 6:37 PM
dozule
dozule - avatar
24th Jul 2019, 6:59 PM
Ander
Ander - avatar