CSS transition-duration 속성
예시
전환 효과가 5초 동안 지속되도록 합니다.
div {
transition-duration: 5s;
}
정의 및 사용
속성 은 transition-duration
전환 효과를 완료하는 데 걸리는 시간(초) 또는 밀리초(ms)를 지정합니다.
기본값: | 0초 |
---|---|
상속: | 아니요 |
애니메이션 가능: | 아니요. 애니메이션 가능 에 대해 읽기 |
버전: | CSS3 |
자바스크립트 구문: | 개체 .style.transitionDuration="1s" |
브라우저 지원
표의 숫자는 속성을 완전히 지원하는 첫 번째 브라우저 버전을 지정합니다.
-webkit-, -moz- 또는 -o- 뒤에 오는 숫자는 접두사와 함께 작동한 첫 번째 버전을 지정합니다.
Property | |||||
---|---|---|---|---|---|
transition-duration | 26.0 4.0 -webkit- |
10.0 | 16.0 4.0 -moz- |
6.1 3.1 -webkit- |
12.1 10.5 -o- |
CSS 구문
transition-duration: time|initial|inherit;
속성 값
Value | Description |
---|---|
time | Specifies how many seconds or milliseconds a transition effect takes to complete. Default value is 0s, meaning there will be no effect |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
관련 페이지
CSS 튜토리얼: CSS 전환
HTML DOM 참조: transitionDuration 속성