title | slug | l10n | ||
---|---|---|---|---|
<animateTransform> |
Web/SVG/Element/animateTransform |
|
{{SVGRef}}
animateTransform
要素は、 ターゲット要素に対して座標変換属性をアニメーションさせ、これにより平行移動、拡大縮小、回転、ゆがみなどのアニメーションを制御することができます。
{{svginfo}}
<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>
{{ EmbedLiveSample('Example','120','120') }}
- {{ SVGAttr("by") }}
- {{ SVGAttr("from") }}
- {{ SVGAttr("to") }}
- {{ SVGAttr("type") }}
この属性は SVGAnimateTransformElement
インターフェイスを提供します。
{{Specifications}}
{{Compat}}