CSS animation-iteration-count 屬性
更多“自己嘗試”的例子見下文。
定義和用法
animation-iteration-count
屬性指定動畫應該播放的次數。
預設值 | 1 |
---|---|
繼承 | no |
可動畫 | 否。 閱讀關於可動畫屬性 |
版本 | CSS3 |
JavaScript 語法 | object.style.animationIterationCount="infinite" 嘗試一下 |
瀏覽器支援
表中的數字指定了完全支援該屬性的第一個瀏覽器版本。
屬性 | |||||
---|---|---|---|---|---|
animation-iteration-count | 43 | 10 | 16 | 9 | 30 |
CSS 語法
animation-iteration-count: number|infinite|initial|inherit;
屬性值
值 | 描述 | 演示 |
---|---|---|
數字 | 一個數字,定義動畫應播放的次數。預設值為 1 | 試一試 » |
infinite | 指定動畫應無限次播放(永遠) | 試一試 » |
initial | 將此屬性設定為其預設值。閱讀關於initial | |
inherit | 從其父元素繼承此屬性。閱讀關於inherit |
更多示例
相關頁面
CSS 教程:CSS 動畫
HTML DOM 參考:animationIterationCount 屬性