CSS 애니메이션 속성
예시
약식 속성을 사용하여 애니메이션을 <div> 요소에 바인딩:
div
{
animation: mymove 5s infinite;
}
정의 및 사용
속성은 다음 animation
에 대한 약식 속성입니다.
참고: 항상 animation-duration 속성을 지정하십시오. 그렇지 않으면 지속 시간이 0이고 재생되지 않습니다.
기본값: | 없음 0 용이함 0 1 보통 없음 실행 중 |
---|---|
상속: | 아니요 |
애니메이션 가능: | 아니요. 애니메이션 가능 에 대해 읽기 |
버전: | CSS3 |
자바스크립트 구문: | object .style.animation="mymove 5s 무한" |
브라우저 지원
표의 숫자는 속성을 완전히 지원하는 첫 번째 브라우저 버전을 지정합니다.
-webkit-, -moz- 또는 -o- 뒤에 오는 숫자는 접두사와 함께 작동한 첫 번째 버전을 지정합니다.
Property | |||||
---|---|---|---|---|---|
animation | 43.0 4.0 -webkit- |
10.0 | 16.0 5.0 -moz- |
9.0 4.0 -webkit- |
30.0 15.0 -webkit- 12.0 -o- |
CSS 구문
animation: name duration timing-function delay iteration-count
direction fill-mode play-state;
속성 값
Value | Description |
---|---|
animation-name | Specifies the name of the keyframe you want to bind to the selector |
animation-duration | Specifies how many seconds or milliseconds an animation takes to complete |
animation-timing-function | Specifies the speed curve of the animation |
animation-delay | Specifies a delay before the animation will start |
animation-iteration-count | Specifies how many times an animation should be played |
animation-direction | Specifies whether or not the animation should play in reverse on alternate cycles |
animation-fill-mode | Specifies what values are applied by the animation outside the time it is executing |
animation-play-state | Specifies whether the animation is running or paused |
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 참조: 애니메이션 속성