스타일 animationDuration 속성
예시
<div> 요소의 animationDuration 속성 변경:
document.getElementById("myDIV").style.animationDuration = "3s";
정의 및 사용
animationDuration 속성은 애니메이션이 한 주기를 완료하는 데 걸리는 초 또는 밀리초를 정의합니다.
브라우저 지원
표의 숫자는 속성을 완전히 지원하는 첫 번째 브라우저 버전을 지정합니다.
Moz 뒤에 오는 숫자는 접두사와 함께 작동한 첫 번째 버전을 지정합니다.
Property | |||||
---|---|---|---|---|---|
animationDuration | 43.0 | 79.0 | 16.0 5.0 Moz |
9.0 | 30.0 |
통사론
animationDuration 속성을 반환합니다.
object.style.animationDuration
animationDuration 속성을 설정합니다.
object.style.animationDuration = "time|initial|inherit"
속성 값
Value | Description |
---|---|
time | Specifies the length an animation takes to finish. Default value is 0, meaning there will be no animation |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
기술적 세부 사항
기본값: | 0 |
---|---|
반환 값: | 요소의 animation-duration 속성을 나타내는 String |
CSS 버전 | CSS3 |
관련 페이지
CSS 참조: animation-duration 속성