CSS3 애니메이션 반복 횟수 속성


  번역 결과:
애니메이션

英[ˌˈtəˈreʃn ] US [ˌəˈtəˈreʃən]

n. ; count; 인수; 인수

v. count; count...; important

3인칭 단수: counts 복수: counts 과거 분사: counted

CSS3 애니메이션 반복 횟수 속성통사론

기능: animation-iteration-count 속성은 애니메이션이 재생되는 횟수를 정의합니다.

구문: ​​animation-iteration-count: n|infinite;

설명: n 애니메이션 재생 횟수를 정의합니다. Infinite는 애니메이션이 무한히 재생되어야 함을 지정합니다.​

참고: Internet Explorer 9 이하 버전은 animation-iteration-count 속성을 지원하지 않습니다.

CSS3의 animation-iteration-count 속성 값을 무한으로 설정하여 무한 루프 재생을 설정할 수 있습니다. 애니메이션 재생 시간을 맞춤 설정할 수도 있습니다

CSS3 애니메이션 반복 횟수 속성예

<!DOCTYPE html>
<html>
<head>
<style> 
div
{
width:100px;
height:100px;
background:red;
position:relative;
animation:mymove 3s;
animation-iteration-count:3;

/* Safari and Chrome */
-webkit-animation:mymove 3s;
-webkit-animation-iteration-count:3;
}

@keyframes mymove
{
from {top:0px;}
to {top:200px;}
}

@-webkit-keyframes mymove /* Safari and Chrome */
{
from {top:0px;}
to {top:200px;}
}
</style>
</head>
<body>

<p><strong>注释:</strong>Internet Explorer 9 以及更早的版本不支持 animation-iteration-count 属性。</p>

<div></div>

</body>
</html>

인스턴스 실행 »

온라인 인스턴스를 보려면 "인스턴스 실행" 버튼을 클릭하세요

인기 추천

비디오

Q&A