animateTransform

  • Revision slug: Web/SVG/Element/animateTransform
  • Revision title: animateTransform
  • Revision id: 502165
  • Created:
  • Creator: kscarfone
  • Is current revision? Yes
  • Comment Added SVG tags and {{SVGRef}} call

Revision Content

{{ SVGRefElem() }}

The animateTransform element animates a transformation attribute on a 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 »
Normative document SVG 1.1 (2nd Edition)

Example

Source code Output result
{{ embed_text("animateTransform.svg", "xml") }} {{ EmbedSVG("animateTransform.svg",120,120) }}

» animateTransform.svg

Attributes

Global attributes

Specific attributes

  • {{ SVGAttr("by") }}
  • {{ SVGAttr("from") }}
  • {{ SVGAttr("to") }}
  • {{ SVGAttr("type") }}

DOM Interface

This element implements the SVGAnimateTransformElement interface.

{{SVGRef}}

Revision Source

<p>{{ SVGRefElem() }}</p>
<p>The <code>animateTransform</code> element animates a transformation attribute on a target element, thereby allowing animations to control translation, scaling, rotation and/or skewing.</p>
<h2 id="Usage_context">Usage context</h2>
<table class="standard-table">
 <tbody>
  <tr>
   <th scope="row">Categories</th>
   <td>Animation element</td>
  </tr>
  <tr>
   <th scope="row">Permitted content</th>
   <td>Any number of the following elements, in any order:<br />
    <a href="/en-US/docs/SVG/Element#Descriptive" title="en/SVG/Attribute#Descriptive">Descriptive elements</a>&nbsp;»</td>
  </tr>
  <tr>
   <th scope="row">Normative document</th>
   <td><a class="external" href="http://www.w3.org/TR/SVG/animate.html#AnimateTransformElement" title="http://www.w3.org/TR/SVG/animate.html#AnimateTransformElement">SVG 1.1 (2nd Edition)</a></td>
  </tr>
 </tbody>
</table>
<h2 id="Example">Example</h2>
<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">Source code</th>
   <th scope="col">Output result</th>
  </tr>
  <tr>
   <td>{{ embed_text("animateTransform.svg", "xml") }}</td>
   <td>{{ EmbedSVG("animateTransform.svg",120,120) }}</td>
  </tr>
 </tbody>
</table>
<p>» <a href="/files/3263/animateTransform.svg" title="/files/3263/animateTransform.svg">animateTransform.svg</a></p>
<h2 id="Attributes">Attributes</h2>
<h3 id="Global_attributes">Global attributes</h3>
<ul>
 <li><a href="/en-US/docs/SVG/Attribute#ConditionalProccessing" title="en/SVG/Attribute#ConditionalProccessing">Conditional processing attributes</a>&nbsp;»</li>
 <li><a href="/en-US/docs/SVG/Attribute#Core" title="en/SVG/Attribute#Core">Core attributes</a>&nbsp;»</li>
 <li><a href="/en-US/docs/SVG/Attribute#AnimationEvent" title="en/SVG/Attribute#AnimationEvent">Animation event attributes</a>&nbsp;»</li>
 <li><a href="/en-US/docs/SVG/Attribute#XLink" title="en/SVG/Attribute#XLink">Xlink attributes</a>&nbsp;»</li>
 <li><a href="/en-US/docs/SVG/Attribute#AnimationAttributeTarget" title="en/SVG/Attribute#AnimationAttributeTarget">Animation attribute target attributes</a>&nbsp;»</li>
 <li><a href="/en-US/docs/SVG/Attribute#AnimationTiming" title="en/SVG/Attribute#AnimationTiming">Animation timing attributes</a>&nbsp;»</li>
 <li><a href="/en-US/docs/SVG/Attribute#AnimationValue" title="en/SVG/Attribute#AnimationValue">Animation value attributes</a>&nbsp;»</li>
 <li><a href="/en-US/docs/SVG/Attribute#AnimationAddition" title="en/SVG/Attribute#AnimationAddition">Animation addition attributes</a>&nbsp;»</li>
 <li>{{ SVGAttr("externalResourcesRequired") }}</li>
</ul>
<h3 id="Specific_attributes">Specific attributes</h3>
<ul>
 <li>{{ SVGAttr("by") }}</li>
 <li>{{ SVGAttr("from") }}</li>
 <li>{{ SVGAttr("to") }}</li>
 <li>{{ SVGAttr("type") }}</li>
</ul>
<h2 id="DOM.C2.A0Interface">DOM&nbsp;Interface</h2>
<p>This element implements the <code><a href="/en-US/docs/DOM/SVGAnimateTransformElement" title="en/DOM/SVGAnimateTransformElement">SVGAnimateTransformElement</a></code> interface.</p>
<p>{{SVGRef}}</p>
Revert to this revision