CSS3 scale() method Examples




CSS3 scale() method Examples

<!DOCTYPE html>
<html>
   <head>
      <title>Example of CSS3 scale() Method</title>
      <style type="text/css">
         img {
            -webkit-transform: scale(1.5); 
            -moz-transform: scale(1.5);  
            -ms-transform: scale(1.5);  
            transform: scale(1.5);  
            opacity: 0.5;
         }
         .box{
            margin: 50px;
            width:103px;
            height:130px;
            background: url("css3.jpg") no-repeat;
         }
      </style>
   </head>
   <body>
      <div class="box">
         <img src="css3.jpg" alt="Octopus">
      </div>
   </body>
</html>                    

Output