Transform:Scale function in CSS - HTML CSS CSS Animation

HTML CSS examples for CSS Animation:Zoom

Description

Transform:Scale function in CSS

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">
.parent {<!--  www .  j  a  va  2 s  . c  o m-->
   width:201px;
   background:blue;
   height:auto;
}

.child {
   transform:scale(0.6);
   background:red;
}
</style> 
 </head> 
 <body> 
  <div class="parent"> 
   <div class="child">
     Lorem ipsum 
    <br>Lorem ipsum d 
    <br>Lorem ipsum 
    <br>Lorem ipsum 
    <br> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials