Change an <img> elements by hovering an other <img> - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover Image

Description

Change an <img> elements by hovering an other <img>

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">
.voir-plus-mini-img:hover .voir-plus-mini-img-avant {
   display:none;
}

.voir-plus-mini-img:hover .voir-plus-img-avant {
   display:block;
}

.voir-plus-img-avant {
   display:none;
}
</style> <!--   w  w w . ja va 2 s  .  co m-->
 </head> 
 <body> 
  <div class="voir-plus-container"> 
   <div class="voir-plus-mini-img"> 
    <img src="https://www.java2s.com/style/demo/InternetExplorer.png" class="voir-plus-mini-img-avant"> 
    <img src="https://www.java2s.com/style/demo/Opera.png" class="voir-plus-img-avant"> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials