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

Style animationName 屬性

Style 對象參考手冊 Style 對象

實(shí)例

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

document.getElementById("myDIV").style.animationName="myNEWmove";

運(yùn)行代碼 ?

定義和用法

animationName 屬性設(shè)置或返回 @keyframes 動(dòng)畫的名稱。


瀏覽器支持

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Internet Explorer 10、Firefox 和 Opera 支持 animationName 屬性。

Safari 和 Chrome 支持另一個(gè)可替代該屬性的屬性,即 WebkitAnimationName 屬性。

注意:Internet Explorer 9 及其之前的版本不支持 animationName 屬性。


語法

返回 animationName 屬性:

object.style.animationName

設(shè)置 animationName 屬性:

object.style.animationName="none|keyframename|initial|inherit"

屬性值

描述
none 默認(rèn)值。規(guī)定沒有動(dòng)畫(可用于重寫來自級聯(lián)的動(dòng)畫)。
keyframename 規(guī)定要綁定到選擇器的關(guān)鍵幀的名稱。
initial 設(shè)置該屬性為它的默認(rèn)值。請參閱 initial。
inherit 從父元素繼承該屬性。請參閱 inherit。

技術(shù)細(xì)節(jié)

默認(rèn)值: none
返回值: 字符串,表示元素的 animation-name 屬性。
CSS 版本 CSS3

相關(guān)文章

CSS 參考手冊:animation-name 屬性


Style 對象參考手冊 Style 對象

其他擴(kuò)展