W3cubDocs

/SVG

<animateTransform>

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨January 2020⁩.

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

Usage context

Categories Animation element
Permitted content Any number of the following elements, in any order:
Descriptive elements

Example

<svg
  width="120"
  height="120"
  viewBox="0 0 120 120"
  xmlns="http://www.w3.org/2000/svg">
  <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>

Attributes

DOM Interface

This element implements the SVGAnimateTransformElement interface.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Opera Safari Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet WebView Android WebView on iOS
animateTransform 2 79 4 ≤12.1 3 18 4 ≤12.1 1 1.0 4.4 1
by 2 79 4 15 3 18 4 14 2 1.0 4.4 2
fill 2 79 4 15 3 18 4 14 1 1.0 4.4 1
from 2 79 4 15 3 18 4 14 2 1.0 4.4 2
href 50 79 51 37 12.1 50 51 37 12.2 5.0 50 12.2
systemLanguage 2 79 12 ≤12.1 3 18 14 ≤12.1 1 1.0 4.4 1
to 2 79 4 15 3 18 4 14 2 1.0 4.4 2
type 2 79 4 15 3 18 4 14 2 1.0 4.4 2

© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Element/animateTransform