CSS Property Value How to - animation-iteration-count: infinite








Question

We would like to know how to animation-iteration-count: infinite.

Answer


<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
@-webkit-keyframes rotate {<!--  w w w.  j  a v a2  s .c o  m-->
 from { -webkit-transform:rotate(0deg);
  
}

to {
  -webkit-transform: rotate(360deg);
}

}
.rotate {
  -webkit-animation-name: rotate;
  -webkit-animation-duration: 0.25s;
  -webkit-animation-iteration-count: infinite;
  -webkit-transition-timing-function: linear;
}
</style>
</head>
<body>
  <img src="http://www.java2s.com/style/download.png" class="rotate" />
</body>
</html>

The code above is rendered as follows: