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

[DOM_Style] JS - animationDelay 속성 - 애니지연시간 (= animationDelay속성 = 애니메이션딜레이 속성)

목차
  1. animationDelay 예제 - CSS animation-delay 속성 설정
  2. animationDelay 정의
  3. animationDelay 구문

 

animationDelay 예제 - CSS animation-delay 속성 설정

 

<style> 

div {

  width: 100px;

  height: 100px;

  background: red;

  position: relative;

  -webkit-animation: hzmove 5s infinite;  /* Chrome, Safari, Opera */

  -webkit-animation-delay: 10s;  /* Chrome, Safari, Opera */

  animation: hzmove 5s infinite;

  animation-delay: 10s;

}


/* Chrome, Safari, Opera */

@-webkit-keyframes hzmove {

  from {left: 0px;}

  to {left: 200px;}

}


@keyframes hzmove {

  from {left: 0px;}

  to {left: 200px;}

}

</style>


<button onclick="homzzang()">클릭</button>


<script>

function homzzang() {

  document.getElementById("hz").style.WebkitAnimationDelay = "3s";  //Chrome, Safari, Opera

  document.getElementById("hz").style.animationDelay = "3s";

}

</script>


<div id="hz"></div>

 

결과보기

 

animationDelay 정의

 

CSS animation-delay 속성 설정/반환. 


 

animationDelay 구문

 

반환

object.style.animationDelay


설정

object.style.animationDelay = "time|initial|inherit"

 


[속성값]

 

CSS animation-delay 속성 참고.

 



분류 제목
Window_Object JS - prompt() 메서드 ★ - 입력유도창 (= 입력요구창 = 입력창 = prompt메서드 = 프롬…
Window_Object JS - requestAnimationFrame() 메서드 - 다음 repaint 전에, 애니메이션을 업데이…
Window_Object JS - resizeBy() 메서드 - 윈도우창크기변경 (※ 현재크기 기준)
Window_Object JS - resizeTo() 메서드 - 윈도우창크기변경 (※ 지정크기로 변경)
Window_Object JS - scroll() 메서드 - 폐기예고. scrollTo() 메서드로 대체.
Window_Object JS - scrollBy() 메서드 ★ - 스크롤 이동 (※ 지정 픽셀 길이 만큼 이동 = scrollBy메…
Window_Object JS - scrollTo() 메서드 ★ - 스크롤이동 (※ 지정좌표로 이동 = scrollTo메서드 = 스크…
Window_Object JS - setInterval() 메서드 ★★★ - 일정 시간 후 자동 반복 실행. (= setInterva…
Window_Object JS - setTimeout() 메서드 ★★★ - 일정시간 후 1회 할일 지정. (= 촉발시간설정 = set…
Window_Object JS - stop() 메서드 - 창로드차단 (= 문서로드차단 = 창로드중단)
API_Storage JS - key(n) 메서드 - Storage 객체의 n번째 키 이름 반환. (= key메서드 = 키메서드)
API_Storage JS - length 속성 - Storage 객체에 저장된 아이템 항목 개수 (= length속성 = 렝스속…
API_Storage JS - getItem() 메서드 ★ - Storage 객체에 저장된 값 반환. (= getItem메서드 =…
API_Storage JS - setItem(keyname, value) -
API_Storage JS - removeItem(keyname) -
API_Storage JS - clear() 메서드 -
Window_Object JS - localStorage 속성 - 웹브라우저에 키/값 쌍을 데이터 영구저장 (IE8 이상) ※ 쿠키…
API_Storage JS - window.sessionStorage -
HTML_Objects JS - <a> 객체 ★ - 주소이동 (= a태그 = a요소 = 에이태그 = 앵커태그 = 하이퍼링크태그)
HTML_Objects JS - <abbr> 객체 - 축약어 (= abbr태그 = abbr요소 = 어브르태그 = 어브리비에이션태그)…
54/67
목록
찾아주셔서 감사합니다. Since 2012