Perform transform on element with active animation - HTML CSS CSS Property

HTML CSS examples for CSS Property:transform

Description

Perform transform on element with active animation

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">

#preloader .circle-outer {<!--from   w ww  .  j  av a  2 s . c o m-->
   position: absolute;
   top: 50%;
   left: 50%;
   width: 94px;
   height: 94px;
   background-color:red;
   margin: -47px 0 0 -47px;
   border: 4px solid #fff;
   border-right-color: transparent;
   border-left-color: transparent;
   border-radius: 50%;
   animation: spinOffPulse 1s infinite linear;
}
@keyframes spinOffPulse{
   0%{transform: rotate(0deg) scale(1);}
   100%{transform: rotate(360deg) scale(2);}
}


      </style> 
 </head> 
 <body> 
  <div id="preloader"> 
   <div class="circle-outer"> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials