CSS Opacity property on :hover state - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover

Description

CSS Opacity property on :hover state

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">
.col-sm-4 {<!--from   w ww . j a  v  a2 s. c o  m-->
   padding-top:21px;
}

.col-sm-4 .img-responsive {
   width:351px;
   height:351px;
   cursor:pointer;
}

.col-sm-4 .img-responsive#one-image {
   background:url('https://www.java2s.com/style/demo/Google-Chrome.png');
}

.col-sm-4 .img-responsive#one-image:hover {
   -webkit-filter:hue-rotate(241deg) saturate(0.7);
}
</style> 
 </head> 
 <body> 
  <div class="row"> 
   <div class="col-sm-4"> 
    <div class="img-responsive img-rounded" id="one-image" alt="Responsive image"> 
    </div> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials