CSS3 애니메이션 지연 속성


  번역 결과:
애니메이션

英[dˈleˈ] 미국 [dəˈle]

n. 지연, 지연될 시간

vt. 지연, 지연

현재분사: 지연 과거분사: 지연 과거분사: 지연

CSS3 애니메이션 지연 속성통사론

기능: animation-delay 속성은 애니메이션이 시작되는 시기를 정의합니다. animation-delay 값은 초 또는 밀리초 단위입니다.

구문: ​​animation-delay: time;

설명: time 선택 사항입니다. 애니메이션이 시작되기 전에 기다리는 시간을 초 또는 밀리초 단위로 정의합니다. 기본값은 0입니다.​

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

애니메이션 지연 효과는 애니메이션이 시작되는 시기를 나타내는 animation-delay 속성으로 설정할 수 있습니다. 초 또는 밀리초 단위로 측정되며 기본값은 0

입니다.

CSS3 애니메이션 지연 속성예

<!DOCTYPE html>
<html>
<head>
<style> 
div
{
width:100px;
height:100px;
background:red;
position:relative;
animation:mymove 5s infinite;
animation-delay:2s;

/*Safari and Chrome*/
-webkit-animation:mymove 5s infinite;
-webkit-animation-delay:2s;
}

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

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

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

<div></div>

</body>
</html>

인스턴스 실행 »

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

인기 추천

비디오

Q&A