Dropdown menu hover speed - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Menu Dropdown

Description

Dropdown menu hover speed

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">
.dropdown-wrapper {<!-- w  w  w.  ja v  a 2 s  .c  o  m-->
   cursor:pointer;
}

.dropdown-container {
   background-color:Chartreuse;
   min-width:281px;
   z-index:1001;
   position:absolute;
   display:none;
   padding-left:0px;
   box-shadow:0px 9px 17px 0px yellow;
   border-radius:4px;
   margin-top:0;
}

.dropdown-container:after {
   content:" ";
   border-bottom:11px solid blue;
   border-left:11px solid pink;
   border-right:11px solid OrangeRed;
   position:absolute;
   top:-11px;
   right:15px;
}

.dropdown-list {
   list-style-type:none;
   color:grey;
   font-size:17px;
   display:block;
   margin:0;
}

.dropdown-list:hover {
   background-color:BlueViolet;
   border-radius:4px;
}

.dropdown-wrapper:hover .dropdown-container {
   display:block;
}

.dropdown-wrapper>.image {
   padding-bottom:16px;
}
</style> 
 </head> 
 <body> 
  <div class="dropdown-wrapper"> 
   <div class="image">
     Lorem i 
   </div> 
   <ul class="dropdown-container"> 
    <li class="dropdown-list">Lorem i</li> 
    <li class="dropdown-list">Lore</li> 
    <li class="dropdown-list">Lorem ip</li> 
    <li class="dropdown-list">Lorem </li> 
   </ul> 
  </div>  
 </body>
</html>

Related Tutorials