屬性名稱
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> |
|---|---|
| 預設值 | None |
| 可動畫的 | 否 |
<name>-
此值指示了要為目標元素設定動畫的 CSS 屬性或屬性的名稱。
規範
| 規範 |
|---|
| SVG 動畫級別 2 # AttributeNameAttribute |