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

View in English Always switch to English

attributeName

attributeName 属性は、アニメーション中に変更される対象要素の CSS プロパティまたは属性の名前を示します。

この属性は、以下の SVG 要素で使用することができます。

html
<svg viewBox="0 0 250 250" xmlns="http://www.w3.org/2000/svg">
  <rect x="50" y="50" width="100" height="100">
    <animate
      attributeType="XML"
      attributeName="y"
      from="0"
      to="50"
      dur="5s"
      repeatCount="indefinite" />
  </rect>
</svg>

使用上のメモ

<name>
デフォルト値 なし
アニメーション 不可
<name>

この値は、アニメーションの対象となる要素の CSS プロパティまたは属性の名前を示します。

仕様書

Specification
SVG Animations Level 2
# AttributeNameAttribute

関連情報