+ 2
Please I need help with animating paths and polygons on svg (html) How do I make it to move?
5 Respostas
+ 2
here is an example :
<svg width="1000" height="250">
<rect width="150" height="150" fill="orange">
<animate attributeName="x" from="0" to="300"
dur="3s" fill="freeze" repeatCount="2"/>
</rect>
</svg>
0
you can learn it in the html tutorial bit I can tell you that you will have to put two coordinates (the one of your start position and the one of your end position). you will also have to put the time of the animation
0
nice