attributeName

We’d love to hear your thoughts on the next set of proposals for the JavaScript language. You can find a description of the proposals here.
Please take two minutes to fill out our short survey.

Атрибут attributeName задаёт имя свойства CSS или атрибута целевого элемента, которое будет изменено во время анимации.

Четыре элемента используют данный атрибут: <animate>, <animateColor>, <animateTransform> и <set>

Пример

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

Смотрите также