blob: 30cde25fa0a9cc39a6a16bfc006487e6d8f777a6 (
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
|
---
title: accumulate
slug: Web/SVG/Attribute/accumulate
tags:
- SVG
- SVG属性
- 需要兼容性表
- 需要示例
translation_of: Web/SVG/Attribute/accumulate
---
<p>« <a href="/en/SVG/Attribute" title="en/SVG/Attribute">SVG属性参考主页</a></p>
<p>该属性控制了动画是否是累加的。</p>
<p>在原来的结果的基础上重复动画的时候,它通常很有用,每一次循环都累加。这个属性告诉动画是否是每次循环,前一个动画属性值要加上去。</p>
<h2 id="用法">用法</h2>
<table class="standard-table">
<tbody>
<tr>
<th scope="row">类别</th>
<td>动画累加属性</td>
</tr>
<tr>
<th scope="row">值</th>
<td><strong title="this is the default value">none</strong> | sum</td>
</tr>
<tr>
<th scope="row">可变性</th>
<td>No</td>
</tr>
<tr>
<th scope="row">规范文档</th>
<td><a class="external" href="http://www.w3.org/TR/SVG/animate.html#AdditionAttributes">SVG 1.1 (2nd Edition)</a></td>
</tr>
</tbody>
</table>
<dl>
<dt>sum</dt>
<dd>指定第一次循环后的每次循环建立在上次循环的终值上。</dd>
<dt>none</dt>
<dd>指定重复循环是不累加的。这是默认值。</dd>
</dl>
<h2 id="示例">示例</h2>
<h2 id="元素">元素</h2>
<p>以下元素可以使用<code>additive</code>属性:</p>
<ul>
<li>{{ SVGElement("animate") }}</li>
<li>{{ SVGElement("animateColor") }}</li>
<li>{{ SVGElement("animateMotion") }}</li>
<li>{{ SVGElement("animateTransform") }}</li>
</ul>
|