Hover to enlarge image in animation - HTML CSS CSS Animation

HTML CSS examples for CSS Animation:Image

Description

Hover to enlarge image in 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">

#picmen img {<!--from  w  w  w.j a  v  a 2s  . co  m-->
   float: right;
   margin: 3px 1px 3px 1px;
   height: 50px;
   width: 50px;
   transition-duration: 0.5s;
}
#picmen img:hover {
   transition-duration: 0.5s;
   width: 60px;
   height: 60px;
}


      </style> 
 </head> 
 <body> 
  <div id="picmen"> 
   <img src="https://www.java2s.com/style/demo/Google-Chrome.png"> 
   <img src="https://www.java2s.com/style/demo/Opera.png"> 
   <img src="https://www.java2s.com/style/demo/InternetExplorer.png"> 
   <img src="https://www.java2s.com/style/demo/Opera.png"> 
   <img src="https://www.java2s.com/style/demo/Firefox.png"> 
   <img src="https://www.java2s.com/style/demo/Google-Chrome.png"> 
   <img src="https://www.java2s.com/style/demo/InternetExplorer.png"> 
  </div>  
 </body>
</html>

Related Tutorials