CSS

[animation] CSS - animation-delay 속성 - 애니지연시간 (= 작동지연시간 = 작동대기시간 = 작동준비시간 = 애니메이션딜레이속성, IE10)

목차
  1. animation-delay 예제 - 2초 후 animation 재생
  2. animation-delay 정의
  3. animation-delay 구문
  4. animation-delay 예제 - 2초 지점부터 animation 재생

 

animation-delay 예제 - 2초 후 animation 재생 

 

<style> 

div {

  width: 100px;

  height: 100px;

  background: blue;

  position: relative;

  -webkit-animation: homzzang 5s infinite; /* Safari 4.0 - 8.0 */

  -webkit-animation-delay: 2s; /* Safari 4.0 - 8.0 */

  animation: homzzang 5s infinite;

  animation-delay: 2s;

}


/* Safari 4.0 - 8.0 */

@-webkit-keyframes homzzang {

  from {left: 0px;}

  to {left: 200px;}

}


@keyframes homzzang {

  from {left: 0px;}

  to {left: 200px;}

}

</style>


<p>2초 후 이동 시작</p>

<div></div>

 

결과보기

 

animation-delay 정의

 

애니메이션 시작 지점 지정.

(속성값 단위: s: 초, ms: 밀리초)

 


 

1.

  • 기본값: 0s
  • 상속여부: X
  • 애니효과: X
  • CSS버전: CSS3
  • JS구문: object.style.animationDelay="1s"

 

2.

IE10 이상 주요 최신 브라우저 지원.

일부 구형 브라우저 경우, -webkit-, -moz-, -o- 접두어 필요.

 

3.

MDN animation-delay 예제 보기

 

 

animation-delay 구문

 

selector {animation-delay: time|initial|inherit;}

 


[속성값]

 

time

선택. 애니메이션 시작 전 대기시간.

  • 사용단위: (초: s) 또는 (밀리초: ms) 
  • 기본값: 0
  • 음수 값 사용하면 해당 시간만큼 이미 재생된 것처럼 시작.

 

initial

이 속성의 기본값으로 설정.


inherit

부모요소 속성값 상속. 

 


animation-delay 예제 - 2초 지점부터 animation 재생

 

<style> 

div {

  width: 200px;

  height: 100px;

  background: tomato;

  position: relative;

  animation: hz 5s 1;

  animation-delay: -2s;

}


@keyframes hz {

  from {left: 0px;}

  to {left: 200px;}

}

</style>


<div>홈짱닷컴 Homzang.com</div>

 

결과보기



분류 제목
intro CSS - 브라우저 접두어 (= vendor prefix = 벤더 프리픽스)
border CSS - border-radius 속성 ★ - 테두리둥글기 지정 (= border-radius속성 = 보더…
border CSS - border-top-left-radius 속성 - 테두리상단왼쪽둥글기 지정 (= 보더탑레프트레이디…
border CSS - border-top-right-radius 속성 - 테두리상단우측둥글기 지정 (= 보더탑라이트레이…
border CSS - border-bottom-right-radius 속성 - 테두리 하단 오른쪽 모서리 둥글게 (= …
border CSS - border-bottom-left-radius 속성 - 테두리하단왼쪽모서리둥글게 (= border…
border CSS - border-image 속성 - 테두리이미지 (= border-image속성 = 보더이미지속성, …
border CSS - border-image-source 속성 - 테두리 이미지 주소 (= border-image-so…
border CSS - border-image-slice 속성 - 테두리이미지자르기 (IE11)
border CSS - border-image-width 속성 - 테두리 이미지 너비 (= border-image-wid…
border CSS - border-image-outset 속성 - 테두리 경계 넘는 이미지 양. (= 보더이미지아웃셋속…
border CSS - border-image-repeat 속성 - 테두리 이미지 반복할지 늘릴지 선택 (= 보더이미지리…
background CSS - background-clip 속성 - 배경영역 (= background-clip속성 = 백그라운드…
background CSS - background-origin 속성 - 배경이미지 좌표시작점 (= 백그라운드오리진 속성)
background CSS - background-size 속성 ★ - 배경이미지 크기 (background-size속성 = 백…
9/33
목록
 홈  PC버전 로그인 일본어
그누앞단언어 1
그누뒷단언어
그외코딩언어
그누보드
제작의뢰
Q&A
커뮤니티 1
웹유틸
회원센터
홈짱닷컴 PC버전 로그인