CSS3 animation-iteration-count 属性
实例
播放三次动画:
           animation-iteration-count:3; 
          
-webkit-animation-iteration-count:3; /*Safari and Chrome*/
 
         -webkit-animation-iteration-count:3; /*Safari and Chrome*/
浏览器支持
 




Internet Explorer 10, Firefox, 和 Opera 支持animation-iteration-count 属性 .
Safari和Chrome通过私有属性-WebKit-animation-iteration-count支持。
注意:Internet Explorer 9及更早IE版本不支持animation-iteration-count 属性。
标签定义及使用说明
animation-iteration-count属性定义动画应该播放多少次。
| 默认值: | 1 | 
|---|---|
| 继承: | no | 
| 版本: | CSS3 | 
| JavaScript 语法: | object object.style.animationIterationCount=3 | 
语法
           animation-iteration-count: 
          value; 
         
 
        | 值 | 描述 | 测试 | 
|---|---|---|
| n | 一个数字,定义应该播放多少次动画 | |
| infinite | 指定动画应该播放无限次(永远) | 
相关文章
CSS3 教程: CSS3 动画