Simple jQuery dropdown menu using toggleClass - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Menu Dropdown

Description

Simple jQuery dropdown menu using toggleClass

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">
li {<!--from w  w w.j a va 2s .c  om-->
   transition:0.4s ease-In-Out;
   cursor:pointer;
}

.container nav li {
   display:none;
}

.container nav li.active {
   display:block;
}

ul li:hover nav li {
   display:block;
}
</style> 
 </head> 
 <body> 
  <div class="container"> 
   <ul> 
    <li> <a href="#">Lorem</a> 
     <nav> 
      <li>Lorem</li> 
     </nav> </li> 
    <li> <a href="#">Lorem</a> 
     <nav> 
      <li>Lorem</li> 
      <li>Lorem</li> 
     </nav> </li> 
   </ul> 
  </div>  
 </body>
</html>

Related Tutorials