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

[animation] CSS - animation-iteration-count 속성 - 애니반복횟수 (= 움직임반복횟수, IE10)

animation-iteration-count 예제

 

<style> 

div {

  width: 300px;

  height: 100px;

  line-height:100px;

  text-align:center;

  color:white;

  background: red;

  position: relative;

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

  -webkit-animation-fill-mode: forwards; /* Safari 4.0 - 8.0 */

  animation: homzzang 3s;

  animation-iteration-count: 2;

}


/* Safari 4.0 - 8.0 */

@-webkit-keyframes homzzang {

  from {top: 0px;}

  to {top: 200px; background-color: blue;}

}


@keyframes homzzang {

  from {top: 0px;}

  to {top: 200px; background-color: blue;}

}

</style>


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

 

결과보기

 

방문 감사합니다. (즐겨찾기 등록: Ctrl + D)

분류 제목
게시물이 없습니다.
목록
찾아주셔서 감사합니다. Since 2012