Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<head>
<style> 
div {
  width: 100px;
  height: 100px;
  background: red;
  position: relative;
  animation: mymove 3s;
  animation-iteration-count: 2;
}
@keyframes mymove {
  from {top: 0px;}
  to {top: 200px;}
}
</style>
</head>
<body>
<h1>The animation-iteration-count Property</h1>
<p>Play the animation two times:</p>
<div></div>
</body>
<!-- Mirrored from www.w3schools.com/cssref/tryit.asp?filename=trycss3_animation-iteration-count by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 05 Sep 2022 15:15:00 GMT -->
</html>