0

How do I make one SVG animation execute and then the next instead of all at once?

I am trying to make an SVG animation where a little circle is going around the perimeter of a square. I made the x animation come before the y animation but its now going in a diagonal line! Help would be appreciated. Thanks here is my HTML code: <svg width="1000" height="250"> <rect width="150" height="150" fill="red"> <animate attributeName="fill" from="red" to="violet" dur="3s" fill="freeze" repeatCount="indefinite"/> </rect> <circle cx="8" cy="12" r="14" fill="pink"> <animate attributeName="fill" from="pink" to="yellow" dur="3s" fill="freeze" repeatCount="indefinite" /> <animate attributeName="cx" from="8" to="150" dur="3s" fill="freeze" repeatCount="1" /> <animate attributeName="cy" from="12" to="150" dur="3s" fill="freeze" repeatCount="1" /> </circle> </svg>

12th Apr 2020, 7:06 PM
Aidan “HTMLPuppy” Dalzell
Aidan “HTMLPuppy” Dalzell  - avatar
4 odpowiedzi
+ 2
Maybe linking your code will better help understanding the problem and correct it!
13th Apr 2020, 3:48 PM
Abhay
Abhay - avatar
+ 1
I understand but I can't provide a solution since I didn't understand clearly and also people prefer here to directly check code and maybe correct it,also you could copy a portion of it and paste it here ,where you are actually facing problem ,
18th Apr 2020, 8:27 PM
Abhay
Abhay - avatar
0
Abhay I thought about that but its not public. Sory😕
18th Apr 2020, 6:17 PM
Aidan “HTMLPuppy” Dalzell
Aidan “HTMLPuppy” Dalzell  - avatar
0
ok, I will copy my HTML into the question
18th Apr 2020, 8:28 PM
Aidan “HTMLPuppy” Dalzell
Aidan “HTMLPuppy” Dalzell  - avatar