• 회원가입
  • 로그인
  • 구글아이디로 로그인

[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>

 

결과보기



분류 제목
gradient CSS - repeating-radial-gradient () 함수 - 방사형 그레이디언트 반복 (= 그라디…
selector CSS - :read-write 가상선택자 - 읽고쓰기가능요소 (= readonly속성없는요소, IE13)
border CSS - border-image-outset 속성 - 테두리 경계 넘는 이미지 양. (= 보더이미지아웃셋속…
selector CSS - :optional 가상선택자 - 선택입력요소 (= required 속성없는 요소, IE10)
responsive CSS - RES Intro - (반응형 웹디자인 소개)
css CSS - 구글 로그인 포커스 애니 효과 (Google Logn Foucs Animation Effect) …
pagination CSS - 페이징 - 둥근테두리 효과 (Rounded bordered pagination)
image CSS - Thumbnail Images - (썸네일 이미지 스타일)
selector CSS - .class1 .class2 클래스선택자 ★★ - class1자손 중 class2 갖는 모든 요소
pagination CSS - 페이징 - 트랜지션 효과 (Hoverable Transition Effect)
gradient CSS - repeating-linear-gradient () 함수 - 반복 선형 그레이디언트 ※ 패턴 배경
border CSS - border-image-source 속성 - 테두리 이미지 주소 (= border-image-so…
image CSS - object-fit 속성 - 컨테이너에 맞게 '이미지/비디오' 크기 조정 방법 지정 (= obje…
pagination CSS - 페이징 - 가운데 정렬 (Centered Pagination)
border CSS - border-right 속성 - 테두리우측일괄 (= 테두리오른쪽일괄 = border-right속성…
animation CSS - animation-timing-function 속성 - 애니재생중속도변화 (= 움직임 중 속도변경…
border CSS - border-left-style 속성 - 테두리좌측모양 (= 테두리왼쪽모양 = border-lef…
border CSS - border-right-color 속성 - 테두리우측색상 (= 테두리오른쪽색상 = 테두리우측색깔…
border CSS - border-image-width 속성 - 테두리 이미지 너비 (= border-image-wid…
border CSS - border-top-style 속성 - 테두리상단모양 (= 테두리상단스타일 = border-top…
14/27
목록
찾아주셔서 감사합니다. Since 2012