このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。

View in English Always switch to English

<animateTransform>

Baseline Widely available

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

<animateTransform>SVG の要素で、ターゲット要素に対して座標変換属性をアニメーションさせ、これにより平行移動、拡大縮小、回転、ゆがみなどのアニメーションを制御することができます。

使用可能な場所

カテゴリーアニメーション要素
許可されている内容任意の数、任意の順序の以下の要素。
説明的要素

html
<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> 

属性

DOM インターフェイス

この属性は SVGAnimateTransformElement インターフェイスを提供します。

仕様書

Specification
SVG Animations Level 2
# AnimateTransformElement

ブラウザーの互換性

関連情報