스타일 animationIterationCount 속성
예시
<div> 요소의 animationIterationCount 속성 변경:
document.getElementById("myDIV").style.animationIterationCount = "infinite";
정의 및 사용
animationIterationCount 속성은 애니메이션을 재생해야 하는 횟수를 설정하거나 반환합니다.
브라우저 지원
표의 숫자는 속성을 완전히 지원하는 첫 번째 브라우저 버전을 지정합니다.
Moz 뒤에 오는 숫자는 접두사와 함께 작동한 첫 번째 버전을 지정합니다.
Property | |||||
---|---|---|---|---|---|
animationIterationCount | 43.0 | 79.0 | 16.0 5.0 Moz |
Not supported | 30.0 |
통사론
animationIterationCount 속성을 반환합니다.
object.style.animationIterationCount
animationIterationCount 속성을 설정합니다.
object.style.animationIterationCount = "number|infinite|initial|inherit"
속성 값
Value | Description |
---|---|
number | A number that defines how many times an animation should be played. Default value is 1 |
infinite | Specifies that the animation should be played infinite times (for ever) |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
기술적 세부 사항
기본값: | 1 |
---|---|
반환 값: | 요소의 animation-iteration-count 속성을 나타내는 String |
CSS 버전 | CSS3 |
관련 페이지
CSS 참조: animation-iteration-count 속성