Hover to show transparent panel - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Hover to Show

Description

Hover to show transparent panel

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">
#container {<!--from  w w w.jav  a 2 s . c o m-->
   width:265px;
   height:190px;
   position:fixed;
   margin-top:100px;
   background-image:url('https://www.java2s.com/style/demo/Google-Chrome.png');
}

#top {
   width:265px;
   line-height:2.6em;
   background:Chartreuse;
   padding:0px;
   position:absolute;
   bottom:-26;
   font-family:arial;
   font-size:25px;
   text-align:center;
}

#top li li, #top li li a {
   height:auto;
   width:241px;
   margin-top:0px;
   line-height:2em;
   font-family:arial;
   font-size:12px;
   text-align:justify;
   transition:all .6s ease-in-out 2s;
   list-style:none;
   color:yellow;
}

#top li:hover li a {
   transition-delay:0s;
   color:blue;
   line-height:2em;
}

#top li:hover li {
   height:auto;
   margin-top:0px;
   width:241px;
   text-align:justify;
   margin-bottom:0px;
   border-radius:0px;
   transition-delay:0s;
   padding:3;
   color:pink;
}

.bold a:hover {
   transition-delay:0s;
   font-weight:bold;
}

li {
   padding:0;
   display:inline-block;
   white-space:normal;
   color:OrangeRed;
   overflow:hidden;
}

a {
   text-decoration:none;
}
</style> 
 </head> 
 <body> 
  <h1>Lorem </h1> 
  <p></p> 
  <div id="container"> 
   <ul id="top"> 
    <li style="color:white;"> <a>Lorem ipsum </a> 
     <ul style="text-align:left; margin-left:-30px;"> 
      <li> <a>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibulum tortor neque, ornare vitae temp</a> </li> 
      <li> <a>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie</a> </li> 
      <li> <a>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi u</a> </li> 
      <li> <a>Lorem ipsum dolor sit amet, consectetur adipisci</a> </li> 
     </ul> </li> 
   </ul> 
  </div>  
 </body>
</html>

Related Tutorials