中文字幕一区二区人妻电影,亚洲av无码一区二区乱子伦as ,亚洲精品无码永久在线观看,亚洲成aⅴ人片久青草影院按摩,亚洲黑人巨大videos

Style animationDirection 屬性

Style 對象參考手冊 Style 對象

實例

改變 <div> 元素的 animationDirection 屬性:

document.getElementById("myDIV").style.animationDirection="reverse";

運行代碼 ?

定義和用法

animationDirection 屬性設置或返回是否循環(huán)交替反向播放動畫。

注意:如果動畫被設置為只播放一次,該屬性將不起作用。


瀏覽器支持

Internet ExplorerFirefoxOperaGoogle ChromeSafari

只有 Firefox 支持 animationDirection 屬性。


語法

返回 animationDirection 屬性:

object.style.animationDirection

設置 animationDirection 屬性:

object.style.animationDirection="normal|reverse|alternate|alternate-reverse|initial|inherit"

屬性值

描述
normal 默認值。動畫按正常播放。
reverse 動畫反向播放。
alternate 動畫在奇數次(1、3、5...)正向播放,在偶數次(2、4、6...)反向播放。
alternate-reverse 動畫在奇數次(1、3、5...)反向播放,在偶數次(2、4、6...)正向播放。
initial 設置該屬性為它的默認值。請參閱 initial。
inherit 從父元素繼承該屬性。請參閱 inherit。

技術細節(jié)

默認值: normal
返回值: 字符串,表示元素的 animation-direction 屬性。
CSS 版本 CSS3

相關文章

CSS 參考手冊:animation-direction 屬性


Style 對象參考手冊 Style 對象

其他擴展