Timed 3 Bars CSS Menu - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Menu Bar

Description

Timed 3 Bars CSS Menu

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">
#burger-box {<!--  www  .  ja  v  a2 s .co m-->
   float:right;
   width:81px;
   height:71px;
   top:0;
   right:0;
   background:Chartreuse;
   position:fixed;
   z-index:102
}

#burger-box>#cpBtn {
   width:41%;
   height:26px;
   cursor:pointer;
   padding:26px 31% 21px 31%
}

#burger-box>#cpBtn>div {
   left:0;
   width:100%;
   height:3px;
   background:yellow;
   background:linear-gradient(to left, blue 51%, pink 51%);
   background-size:201% 100%;
   background-position:right bottom;
   margin:7px 0;
   transition:background .26s ease .46s
}

#burger-box>#cpBtn>div:nth-child(1) {
   transition:background .26s ease .26s
}

#burger-box>#cpBtn>div:nth-child(3) {
   transition:background .26s ease .66s
}

#burger-box>#cpBtn:hover>div {
   background-position:left bottom
}
</style> 
 </head> 
 <body> 
  <section id="burger-box"> 
   <div id="cpBtn"> 
    <div></div> 
    <div></div> 
    <div></div> 
   </div> 
  </section>  
 </body>
</html>

Related Tutorials