스타일 animationDirection 속성
예시
<div> 요소의 animationDirection 속성 변경:
document.getElementById("myDIV").style.animationDirection = "reverse";
정의 및 사용
animationDirection 속성은 애니메이션이 대체 주기에서 반대로 재생되어야 하는지 여부를 설정하거나 반환합니다.
참고: 애니메이션이 한 번만 재생되도록 설정된 경우 이 속성은 효과가 없습니다.
브라우저 지원
표의 숫자는 속성을 완전히 지원하는 첫 번째 브라우저 버전을 지정합니다.
Moz 뒤에 오는 숫자는 접두사와 함께 작동한 첫 번째 버전을 지정합니다.
Property | |||||
---|---|---|---|---|---|
animationDirection | 43.0 | 79.0 | 16.0 5.0 Moz |
9.0 | 30.0 |
통사론
animationDirection 속성을 반환합니다.
object.style.animationDirection
animationDirection 속성을 설정합니다.
object.style.animationDirection = "normal|reverse|alternate|alternate-reverse|initial|inherit"
속성 값
Value | Description |
---|---|
normal | Default value. The animation should be played as normal |
reverse | The animation should play in reverse direction |
alternate | The animation will be played as normal every odd time (1,3,5,etc..) and in reverse direction every even time (2,4,6,etc...) |
alternate-reverse | The animation will be played in reverse direction every odd time (1,3,5,etc..) and in a normal direction every even time (2,4,6,etc...) |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
기술적 세부 사항
기본값: | 정상 |
---|---|
반환 값: | 요소의 animation-direction 속성을 나타내는 String |
CSS 버전 | CSS3 |
관련 페이지
CSS 참조: animation-direction 속성