Can we move circles diagonally using animate or some other tag ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Can we move circles diagonally using animate or some other tag ?

Can we move circles diagonally using animate or some other tag ?

12th Jun 2018, 2:43 PM
Suprabhat kumar
Suprabhat kumar - avatar
2 Answers
+ 17
by adding 2 animate tag, and select cx and cy for attributeName <svg width="2000" height="2000"> <circle cx="80" cy="80" r="50" fill="green"> <!-- this animate for x position --> <animate attributeName="cx" from="80" to="300" dur="3s" fill="freeze" repeatCount="2"/> <!-- this animate for y position --> <animate attributeName="cy" from="80" to="300" dur="3s" fill="freeze" repeatCount="2"/> </circle> </svg>
13th Jun 2018, 3:31 AM
Amethyst Animion
Amethyst Animion - avatar
+ 14
yes you can
12th Jun 2018, 3:00 PM
Amethyst Animion
Amethyst Animion - avatar