--- title: animateTransform slug: Web/SVG/Element/animateTransform tags: - Element - SVG - SVG Animation translation_of: Web/SVG/Element/animateTransform --- <div>{{SVGRef}}</div> <p><code>animateTransform</code> 要素は、 ターゲット要素に対して変換属性をアニメーション化し、これにより変形、スケーリング、回転およびまたはゆがみのアニメーションを制御することができます。</p> <h2 id="使用可能な場所">使用可能な場所</h2> <p>{{svginfo}}</p> <h2 id="例">例</h2> <pre class="brush: html"><?xml version="1.0"?> <svg width="120" height="120" viewBox="0 0 120 120" xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" > <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></pre> <p><strong>ライブサンプル</strong></p> <p>{{ EmbedLiveSample('例','120','120') }}</p> <h2 id="属性">属性</h2> <h3 id="グローバル属性">グローバル属性</h3> <ul> <li><a href="/ja/docs/Web/SVG/Attribute#ConditionalProccessing" title="ja/Web/SVG/Attribute#ConditionalProccessing">条件処理属性</a> »</li> <li><a href="/ja/docs/Web/SVG/Attribute#Core" title="en/SVG/Attribute#Core">コア属性</a> »</li> <li><a href="/ja/docs/Web/SVG/Attribute#AnimationEvent" title="ja/Web/SVG/Attribute#AnimationEvent">アニメーションイベント属性</a> »</li> <li><a href="/ja/docs/Web/SVG/Attribute#XLink" title="ja/Web/SVG/Attribute#XLink">Xlink属性</a> »</li> <li><a href="/ja/docs/Web/SVG/Attribute#AnimationAttributeTarget" title="ja/Web/SVG/Attribute#AnimationAttributeTarget">Animation attribute target attributes</a> »</li> <li><a href="/ja/docs/Web/SVG/Attribute#AnimationTiming" title="en/SVG/Attribute#AnimationTiming">アニメーションタイミング属性</a> »</li> <li><a href="/ja/docs/Web/SVG/Attribute#AnimationValue" title="ja/Web/SVG/Attribute#AnimationValue">Animation value attributes</a> »</li> <li><a href="/ja/docs/Web/SVG/Attribute#AnimationAddition" title="ja/Web/SVG/Attribute#AnimationAddition">Animation addition attributes</a> »</li> <li>{{ SVGAttr("externalResourcesRequired") }}</li> </ul> <h3 id="専用属性">専用属性</h3> <ul> <li>{{ SVGAttr("by") }}</li> <li>{{ SVGAttr("from") }}</li> <li>{{ SVGAttr("to") }}</li> <li>{{ SVGAttr("type") }}</li> </ul> <h2 id="DOM_インターフェース">DOM インターフェース</h2> <p>この属性は <code><a href="/en-US/docs/DOM/SVGAnimateTransformElement" title="en/DOM/SVGAnimateTransformElement">SVGAnimateTransformElement</a></code> インターフェースを提供します。</p> <p> </p> <h2 id="仕様">仕様</h2> <table> <thead> <tr> <th scope="col">仕様</th> <th scope="col">ステータス</th> <th scope="col">コメント</th> </tr> </thead> <tbody> <tr> <td>{{SpecName("SVG Animations 2", "#AnimateTransformElement", "<animateTransform>")}}</td> <td>{{Spec2("SVG Animations 2")}}</td> <td>変更なし</td> </tr> <tr> <td>{{SpecName('SVG1.1', 'animate.html#AnimateTransformElement', '<animateTransform>')}}</td> <td>{{Spec2('SVG1.1')}}</td> <td>初回定義</td> </tr> </tbody> </table> <h2 id="ブラウザ互換性">ブラウザ互換性</h2> <div class="hidden">このページの互換表は構造化データにより作られました。データにコントリビュートしたければ <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> をチェックしてプルリクエストを送ってください。</div> <p>{{Compat("svg.elements.animateTransform")}}</p>