+ 5
What can make my animation image not to move?
8 Answers
+ 6
<svg width="1000" height="250">
<rect width="150" height="80" fill="green">
<animate attributeName="x" from="0px" to="300px"
dur="3s" fill="freeze" repeatCount="4">
</rect>
</svg>
you forgot to write equal sign (=) between to and "300"
to "300px" â
to="300px" â
you forgot to write px for positions
from="0" â
from="0px" â
+ 5
code please
+ 5
it worked
Thanks everyone
+ 4
<svg width="1000" height="250">
<rect width="150" height="80" fill="green">
<animate attributeName="x" from="0" to "300"
dur="3s" fill="freeze" repeatcount="4">
</rect>
</svg>
+ 4
iteration count
+ 2
still not working
+ 1
position: absolute; (CSS3)