slide/stretch items in menu from right to left - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Menu Item

Description

slide/stretch items in menu from right to left

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">
.cs-menu {<!--  w  w  w.  j av a 2s.c  o m-->
   position:fixed;
   top:36%;
   right:11%;
   background-color:Chartreuse;
}

.cs-menu .item {
   border:2px solid yellow;
   width:41px;
   height:41px;
   background:blue;
   transition:width 2s;
}

.cs-menu .item:hover {
   width:151px;
}
</style> 
 </head> 
 <body> 
  <div class="cs-menu"> 
   <div class="item">
     Lorem 
   </div> 
   <div class="item">
     Lorem 
   </div> 
   <div class="item">
     Lorem i 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials