Make a looped animation wait - HTML CSS CSS Animation

HTML CSS examples for CSS Animation:Animation Control

Description

Make a looped animation wait

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">

@-webkit-keyframes rotate {<!-- w w  w.  j  a  v a  2 s .  co  m-->
   0% {
      -webkit-transform: rotate(0deg);
   }
   83% { 
   -webkit-transform: rotate(360deg);
}
100% {
   -webkit-transform: rotate(360deg);
}
}
.animated {
   -webkit-animation-name: rotate;
   -webkit-animation-duration: 2.9s;
   -webkit-animation-iteration-count: infinite;
   -webkit-transition-timing-function: ease-in-out;
   height: 200px;
   width: 200px;
   background-color: rgb(0, 162, 232);
   color: white;
}


      </style> 
 </head> 
 <body> 
  <div class="animated">
    Glee is awesome! 
  </div>  
 </body>
</html>

Related Tutorials