Transform to enlarge image - HTML CSS CSS Animation

HTML CSS examples for CSS Animation:Zoom

Description

Transform to enlarge image

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-xon {<!--from  w  ww. ja va  2s  . c  o m-->
   height:279;
   width:186;
   overflow:hidden;
}

img.image {
   -webkit-transition:all 2s ease;
   -moz-transition:all 2s ease;
   -ms-transition:all 2s ease;
   -o-transition:all 2s ease;
   transition:all 2s ease;
   height:279;
   width:186;
}

img.image:hover {
   -webkit-transform:scale(2.2);
   -moz-transform:scale(2.2);
   -ms-transform:scale(2.2);
   -o-transform:scale(2.2);
   transform:scale(2.2);
   overflow:hidden;
   height:279;
   width:186;
}
</style> 
 </head> 
 <body> 
  <div class="img-xon"> 
   <img class="image" src="https://www.java2s.com/style/demo/Firefox.png"> 
  </div>  
 </body>
</html>

Related Tutorials