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> | 
    
|---|---|
| 默认值 | None | 
| 动画性 | 无 | 
<name>- :此值表示要动画化的目标元素的 CSS 属性或属性的名称。
 
规范
| Specification | 
|---|
| SVG Animations Level 2> # AttributeNameAttribute>  |