FadeIn and out DIV2 on hover of DIV1 - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover Animation

Description

FadeIn and out DIV2 on hover of DIV1

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">
a #test {<!--  w w w . ja  v a 2 s .c  om-->
   padding:21px;
   background-color:Chartreuse;
   width:201px;
   height:201px;
}

a:hover #test {
   opacity:0.6;
   transition:opacity .3s ease-out;
   -moz-transition:opacity .3s ease-out;
   -webkit-transition:opacity .3s ease-out;
   -o-transition:opacity .3s ease-out;
}
</style> 
 </head> 
 <body> 
  <a href="#"> 
   <div id="test">
     Lorem ipsum d 
   </div> </a>  
 </body>
</html>

Related Tutorials