/
animation-iteration-count.htm
182 lines (182 loc) · 6.42 KB
/
animation-iteration-count.htm
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
<meta charset="utf-8" />
<title>animation-iteration-count</title>
<meta name="description" content="CSS3 animation-iteration-count属性用于检索或设置对象动画的循环次数" />
<meta name="keywords" content="animation-iteration-count, css3, css3参考手册" />
<meta name="author" content="Joy Du(飘零雾雨), dooyoe@gmail.com, www.doyoe.com" />
<meta name="robots" content="all" />
<!--[if lte IE 8]>
<script src="../../js/html5.js"></script>
<![endif]-->
<link rel="stylesheet" href="../../skin/article.css" />
</head>
<body>
<nav id="guide" class="g-mod">
<div class="from">
<a href="http://css.doyoe.com/" target="_blank">CSS3参考手册</a>
<span>»</span>
<a href="../index.htm">属性列表</a>
<span>»</span>
<a href="index.htm" id="category" rel="properties/animation" name="animation-iteration-count">动画属性</a>
<span>»</span>
</div>
<div class="to">
<span class="label">相关内容:</span>
<div class="g-combobox g-transition">
<a href="?" class="g-transition target">
<strong>其它动画属性参考</strong>
<span>选择其它项<!--[if lte IE 7]><ins>IE7 and earlier, Get to die</ins><![endif]--></span>
</a>
<div class="g-transition list">
<ul>
<!-- 插入快速分类导航 -->
</ul>
</div>
</div>
</div>
</nav>
<header id="hd">
<section id="title" class="g-mod">
<h1 class="tit">animation-iteration-count</h1>
<ul class="info">
<li><strong>版本:CSS3</strong></li>
<li>继承性:无</li>
</ul>
<!-- 插入浏览器信息 -->
</section>
</header>
<section id="bd">
<section id="syntax" class="g-mod g-attr">
<h2 class="tit">语法:</h2>
<div class="cont">
<p><strong>animation-iteration-count</strong>:infinite | <a href="../../values/numeric/number.htm"><number></a> [ , infinite | <a href="../../values/numeric/number.htm"><number></a> ]*</p>
<p><strong>默认值</strong>:<mark class="defaultvalue">1</mark></p>
<p><strong>适用于</strong>:所有元素,包含伪对象:after和:before</p>
<p><strong>继承性</strong>:无</p>
</div>
</section>
<section id="value" class="g-mod g-attr">
<h2 class="tit">取值:</h2>
<div class="cont">
<dl>
<dt>infinite:</dt>
<dd>无限循环</dd>
<dt><a href="../../values/numeric/number.htm"><number></a>:</dt>
<dd>指定对象动画的具体循环次数</dd>
</dl>
</div>
</section>
<section id="intro" class="g-mod g-attr">
<h2 class="tit">说明:</h2>
<div class="cont">
<strong>检索或设置对象动画的循环次数</strong>
<ul>
<li>如果提供多个属性值,以逗号进行分隔。</li>
<li>对应的脚本特性为<strong>animationIterationCount</strong>。</li>
</ul>
</div>
</section>
<section id="compatible" class="g-mod g-attr">
<h2 class="tit">兼容性:</h2>
<div class="cont">
<ul class="support-type">
<li><span class="support">浅绿</span> = 支持</li>
<li><span class="unsupport">红色</span> = 不支持</li>
<li><span class="partsupport">粉色</span> = 部分支持</li>
</ul>
<table class="g-data">
<thead>
<tr>
<th><a href="#title" title="查看本文档测试时所用浏览器版本">支持版本</a>\类型</th>
<th><span class="browser-ie">IE</span></th>
<th><span class="browser-firefox">Firefox</span></th>
<th><span class="browser-safari">Safari</span></th>
<th><span class="browser-chrome">Chrome</span></th>
<th><span class="browser-opera">Opera</span></th>
</tr>
</thead>
<tbody>
<tr>
<th>版本</th>
<td class="unsupport">6-9</td>
<td class="unsupport">4</td>
<td rowspan="2" class="experimentsupport">5.1.7</td>
<td rowspan="2" class="experimentsupport">13-23</td>
<td rowspan="2" class="unsupport">11.5-11.6</td>
</tr>
<tr>
<th>版本</th>
<td class="experimentsupport">10</td>
<td class="experimentsupport">5-18</td>
</tr>
</tbody>
</table>
</div>
</section>
<section id="example" class="g-mod g-attr">
<h2 class="tit">示例:</h2>
<div class="cont">
<textarea cols="90" rows="10">
<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
<meta charset="utf-8" />
<title>animation-iteration-count_CSS参考手册_web前端开发参考手册系列</title>
<meta name="author" content="Joy Du(飘零雾雨), dooyoe@gmail.com, www.doyoe.com" />
<style>
h1{font-size:16px;}
div{width:100px;height:100px;padding:10px;border-radius:61px;box-shadow:0 0 10px rgba(204,102,0,.8);background:#F6D66E;background:-moz-linear-gradient(top,#fff,#F6D66E);background:-webkit-linear-gradient(top,#fff,#F6D66E);background:-o-linear-gradient(top,#fff,#F6D66E);background:-ms-linear-gradient(top,#fff,#F6D66E);background:linear-gradient(top,#fff,#F6D66E);
-moz-animation:animations 1.5s ease infinite;
-webkit-animation:animations 1.5s ease infinite;
-o-animation:animations 1.5s ease infinite;
-ms-animation:animations 1.5s ease infinite;
animation:animations 1.5s ease infinite;
}
@-webkit-keyframes animations{
0%{box-shadow:0 0 10px rgba(204,102,0,.8);}
50%{box-shadow:0 0 10px rgba(204,102,0,.3);}
100%{box-shadow:0 0 10px rgba(204,102,0,.8);}
}
@-moz-keyframes animations{
0%{box-shadow:0 0 10px rgba(204,102,0,.8);}
50%{box-shadow:0 0 10px rgba(204,102,0,.3);}
100%{box-shadow:0 0 10px rgba(204,102,0,.8);}
}
@-o-keyframes animations{
0%{box-shadow:0 0 10px rgba(204,102,0,.8);}
50%{box-shadow:0 0 10px rgba(204,102,0,.3);}
100%{box-shadow:0 0 10px rgba(204,102,0,.8);}
}
@-ms-keyframes animations{
0%{box-shadow:0 0 10px rgba(204,102,0,.8);}
50%{box-shadow:0 0 10px rgba(204,102,0,.3);}
100%{box-shadow:0 0 10px rgba(204,102,0,.8);}
}
@keyframes animations{
0%{box-shadow:0 0 10px rgba(204,102,0,.8);}
50%{box-shadow:0 0 10px rgba(204,102,0,.3);}
100%{box-shadow:0 0 10px rgba(204,102,0,.8);}
}
</style>
</head>
<body>
<h1>太阳光晕将不停的闪烁:</h1>
<div></div>
</body>
</html>
</textarea>
<p><input type="button" value="运行" class="g-btn g-btn-sure" /></p>
</div>
</section>
</section>
<footer id="ft">
<aside id="rights" class="g-mod">
<!-- 插入浏览器及版权信息 -->
</aside>
</footer>
<script src="../../js/jquery.js"></script>
<script src="../../js/inner.js"></script>
</body>
</html>