1. Веб-технологии для разработчиков
  2. SVG
  3. Reference
  4. Справочник SVG атрибутов
  5. attributeName

This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

attributeName

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

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

Пример

html,
body,
svg {
 height: 100%;
}
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

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

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.

AltStyle によって変換されたページ (->オリジナル) /