Hover to change opacity - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover to change

Description

Hover to change opacity

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">
.project img {<!--  w  w w.j a va 2  s.c  o m-->
   opacity:2;
   transition:all ease .3s;
}

.project:hover img {
   opacity:0;
}
</style> 
 </head> 
 <body> 
  <div class="custom_container"> 
   <div class="project"> 
    <img src="https://www.java2s.com/style/demo/InternetExplorer.png"> 
   </div> 
   <div class="project"> 
    <img src="https://www.java2s.com/style/demo/InternetExplorer.png"> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials