SVG <animateTransform> Element (original) (raw)

Last Updated : 31 Mar, 2022

SVG stands for Scalable Vector Graphics. It defines vector-based graphics and animation like in HTML Canvas.

The animateTransform element animates a transformation attribute on its target element, thereby allowing animations to control translation, scaling, rotation, and/or skewing.

Syntax:

<animateTransform attributeName=''transform''/>

Attribute:

Example:

HTML `

    <polygon points="60,30 90,90 30,90">
        <animateTransform attributeName="transform"
            attributeType="XML" type="rotate" 
            from="0 60 70" to="360 60 70"
            dur="10s" repeatCount="indefinite" />
    </polygon>
</svg>

`

Supported Browsers: