0
Didn't work plz help
<!DOCTYPE html> <html> <head> <title>bd flag</title> </head> <body> <svg width="2000" height="2000"> <circle cx="50" cy="25" r"40" fill="red"> <animate attributeName="x" from="0" to="300" dur="3s" fill="freeze" repeatCount="2" /> </circle> <rect width="200" height="100" x="0" y="0" fill="green" > <animate attributeName="x" from="0" to="300" dur="3s" fill="freeze" repeatCount="2" /> </rect> </svg> </body> </html>
7 Answers
0
In the <circle> tag at the attribute r is a equal (=) missing
0
im done. But animate code Didn't work
0
Change the x's to the attribute you want to change like the radius r write attributeName="r"
or look here
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/attributeName
0
I changed it but the circle doesnt go right direction with rectangle. It work like zoom out. I want the circle go with rectangle same direction.
0
Oh ok
Here:
<svg width="2000" height="2000">
<circle cx="50" cy="25" r="40" fill="red">
<animate attributeName="cx" from="0" to="300" dur="3s" fill="freeze" repeatCount="2" />
</circle>
<rect width="200" height="100"
x="0" y="0" fill="green" >
<animate attributeName="x" from="0" to="300" dur="3s" fill="freeze" repeatCount="2" />
</rect>
</svg>
You had to change attributeName in circle to cx
0
Thank you very much
0
No problem