<?xml version="1.0"?> <!DOCTYPE svg PUBLIC "-//W3//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg xmlns= "http://www.w3.org/2000/svg" xmlns:xlink= "http://www.w3.org/1999/xlink" version="1.1" width="200" height="200"> <rect x="20" y="20" width="100" height="100" style="fill: red;"> <animate attributeName="width" attributeType="XML" from="100" to="50" begin="1s" dur="5s" fill="freeze"/> </rect> </svg>