스타일 animationName 속성
예시
<div> 요소의 animationName 속성 변경:
document.getElementById("myDIV").style.animationName = "myNEWmove";
정의 및 사용
animationName 속성은 @keyframes 애니메이션의 이름을 설정하거나 반환합니다.
브라우저 지원
표의 숫자는 속성을 완전히 지원하는 첫 번째 브라우저 버전을 지정합니다.
Webkit, Moz 또는 O 뒤에 오는 숫자는 접두사와 함께 작동한 첫 번째 버전을 지정합니다.
Property | |||||
---|---|---|---|---|---|
animationName | 43.0 4.0 Webkit |
10.0 | 16.0 5.0 Moz |
9.0 4.0 Webkit |
30.0 15.0 Webkit 12.1 12.0 O |
통사론
animationName 속성을 반환합니다.
object.style.animationName
animationName 속성을 설정합니다.
object.style.animationName = "none|keyframename|initial|inherit"
속성 값
Value | Description |
---|---|
none | Default value. Specifies that there will be no animation (can be used to override animations coming from the cascade) |
keyframename | Specifies the name of the keyframe you want to bind to the selector |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
기술적 세부 사항
기본값: | 없음 |
---|---|
반환 값: | 요소의 animation-name 속성을 나타내는 String |
CSS 버전 | CSS3 |
관련 페이지
CSS 참조: animation-name 속성