CSS3 animation-delay 屬性
瀏覽器支持
Internet Explorer 10、Firefox 以及 Opera 支持 animation-delay 屬性。
Safari 和 Chrome 支持替代的 -webkit-animation-delay 屬性。
注釋:Internet Explorer 9 以及更早的版本不支持 animation-delay 屬性。
定義和用法
animation-delay 屬性定義動畫何時開始。
animation-delay 值以秒或毫秒計。
提示:允許負(fù)值,-2s 使動畫馬上開始,但跳過 2 秒進(jìn)入動畫。
默認(rèn)值: | 0 |
---|---|
繼承性: | no |
版本: | CSS3 |
JavaScript 語法: | object.style.animationDelay="2s" |
親自試一試 - 實例
負(fù)值,請注意動畫跳過 2 秒進(jìn)入動畫周期:
animation-delay: -2s /* W3C 和 Opera */ -moz-animation-delay: -2s /* Firefox */ -webkit-animation-delay: -2s /* Safari 和 Chrome */
相關(guān)頁面
CSS3 教程:CSS3 動畫