Latest web development tutorials

Obiekt HTML DOM Style animationName

Styl Object Reference styl Przedmioty

Przykłady

Zmień <div> atrybuty animationName:

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

Spróbuj »

Definicja i Wykorzystanie

animationName zestawy własności lub zwraca nazwę @keyframes animacji.


Pomoc Browser

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Internet Explorer 10, Firefox i Opera obsługa nieruchomości animationName.

Safari i Chrome wspierać inną alternatywę atrybutu właściwość, że WebkitAnimationName nieruchomości.

Uwaga: Internet Explorer 9 i wcześniejsze wersje nie obsługują animationName nieruchomości.


gramatyka

Powrót właściwości animationName:

object .style.animationName

Ustawianie właściwości animationName:

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

Wartość nieruchomości

描述
none 默认值。规定没有动画(可用于重写来自级联的动画)。
keyframename 规定要绑定到选择器的关键帧的名称。
initial 设置该属性为它的默认值。请参阅 initial
inherit 从父元素继承该属性。请参阅 inherit

dane techniczne

Domyślnie: żaden
Zwraca: Ciąg reprezentujący atrybut animacja nazwa-elementu.
wersja CSS CSS3


Powiązane artykuły

CSS Reference Manual: atrybut Animacja-name


Styl Object Reference styl Przedmioty