aboutsummaryrefslogtreecommitdiff
path: root/files/ru/web/svg/attribute/attributename/index.html
blob: 4c7d498f3a3faa14119817df2ef32aacac49c8d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
---
title: attributeName
slug: Web/SVG/Attribute/attributeName
tags:
  - NeedsCompatTable
  - SVG
  - SVG атрибуты
translation_of: Web/SVG/Attribute/attributeName
---
<div>{{SVGRef}}</div>

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

<p>Четыре элемента используют данный атрибут: {{SVGElement("animate")}}, {{SVGElement("animateColor")}}, {{SVGElement("animateTransform")}} и {{SVGElement("set")}}</p>

<div id="topExample">
<div class="hidden">
<pre class="brush: css">html, body, svg {
  height: 100%;
}</pre>
</div>

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

<p>{{EmbedLiveSample("topExample", "400", "250")}}</p>
</div>

<h2 id="Контекст_использования">Контекст использования</h2>

<table class="properties">
 <tbody>
  <tr>
   <th scope="row">Значение</th>
   <td><code>&lt;name&gt;</code></td>
  </tr>
  <tr>
   <th scope="row">Значение по умолчанию</th>
   <td><em>None</em></td>
  </tr>
  <tr>
   <th scope="row">Анимируемый</th>
   <td>Нет</td>
  </tr>
 </tbody>
</table>

<dl>
 <dt><code>&lt;name&gt;</code></dt>
 <dd>Это значение задаёт имя свойства CSS или атрибута целевого элемента, которое будет анимировано.</dd>
</dl>

<h2 id="Спецификации">Спецификации</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Спецификация</th>
   <th scope="col">Статус</th>
   <th scope="col">Комментарий</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{SpecName("SVG Animations 2", "#AttributeNameAttribute", "attributeName")}}</td>
   <td>{{Spec2("SVG Animations 2")}}</td>
   <td>Без изменений</td>
  </tr>
  <tr>
   <td>{{SpecName("SVG1.1", "animate.html#AttributeNameAttribute", "attributeName")}}</td>
   <td>{{Spec2("SVG1.1")}}</td>
   <td>Изначальное определение</td>
  </tr>
 </tbody>
</table>

<h2 id="Смотрите_также">Смотрите также</h2>

<ul>
 <li><a href="https://www.w3.org/TR/2001/REC-smil-animation-20010904/#AccumulateAttribute">SMIL Animation specification</a></li>
</ul>