<svg width="580" height="400" xmlns="http://www.w3.org/2000/svg">
<polygon points="30 30 70 30 90 70 10 70" style="fill:#fcc; stroke:black">
<animate id="animation"
attributeName="points"
attributeType="XML"
to="50 30 70 50 50 90 30 50"
begin="0s" dur="5s" fill="freeze"/>
</polygon>
</svg>