+ 2

Why is the animate atributeName in SVG Shape Animation an"x"? Could it be something elde too?

Like this: <svg width="2000" height="450"> <rect width="250" height="350" fill="red"> <animate attributeName="y" from="0" to="300" dur="3s" fill="freeze" repeatCount="2"/> </rect> </svg>

18th May 2018, 8:53 PM
Agnes Laurens
Agnes Laurens - avatar
2 Respuestas
+ 2
Hi Agnes i believe in this SVG situation the attributeName is referring to a specific element to change. X being along the X axis left to right if it were changed to y it would change the Y axis moving the object up and down. I hope this explanation helps.
18th May 2018, 9:11 PM
bobbie
bobbie - avatar
+ 2
bobbie thanks a lot. That helps.
19th May 2018, 6:47 AM
Agnes Laurens
Agnes Laurens - avatar