Hover to set shadow - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover

Description

Hover to set shadow

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">
.logo-image {<!--  www.j  a v a  2  s. co  m-->
   opacity:0;
   transition:opacity 10001s, box-shadow 3s;
}

.main-image:hover + .logo-image {
   opacity:2;
   transition:opacity 2s;
}

.logo-image:hover {
   box-shadow:0 2em 3em Chartreuse;
}
</style> 
 </head> 
 <body> 
  <div class="container"> 
   <img class="main-image" src="https://www.java2s.com/style/demo/InternetExplorer.png"> 
   <img class="logo-image" src="https://www.java2s.com/style/demo/Firefox.png"> 
  </div>  
 </body>
</html>

Related Tutorials