New course! Every coder should learn Generative AI!
Try a free lesson+ 3
<svg width="1000" height="250">
<polygon points="0 0, 0 100, 100 50" fill="orange">
<animate attributeName="points" to="300 0, 300 100, 400 50"
dur="3s" fill="freeze" repeatCount="2"/>
</polygon>
</svg>
+ 2
You can animate like this, and you can change every single coordinate so you can move the entire shape or a single point
+ 1
Do you want to move the entire polygon or only the points?