Hover to scale image using transform - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover Image

Description

Hover to scale image using transform

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">
img {<!--from ww  w  .  ja v  a 2 s . co m-->
   height:51px;
   width:51px;
   background-color:Chartreuse;
}

img:hover {
   transform:scale(3);
   -ms-transform:scale(3);
   -webkit-transform:scale(3);
}
</style> 
 </head> 
 <body> 
  <table> 
   <tbody> 
    <tr> 
     <td> <img src="https://www.java2s.com/style/demo/InternetExplorer.png"> </td> 
     <td> <img src="https://www.java2s.com/style/demo/InternetExplorer.png"> </td> 
    </tr> 
    <tr> 
     <td> <img src="https://www.java2s.com/style/demo/Safari.png"> </td> 
     <td> <img src="https://www.java2s.com/style/demo/Opera.png"> </td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials