• Q&A
  • 회원가입
  • 로그인

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

3,772  

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>

 

결과보기

 


찾아주셔서 감사합니다. Since 2012