Recreate web OS style navigation in CSS3 - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Nav Bar

Description

Recreate web OS style navigation in CSS3

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">
#menu0 {<!--   w ww.  jav  a  2  s . c  o m-->
   fill:blue;
}

#menu1 {
   fill:red;
}

#menu2 {
   fill:green;
}

#menu3 {
   fill:orange;
}

polygon {
   opacity:2;
   transition:opacity 2s;
   cursor:pointer;
}

polygon:hover {
   opacity:0.4;
   transition:opacity 0.6s;
}
</style> 
 </head> 
 <body> 
  <svg height="200" width="500"> 
   <polygon id="menu0" points="20,0 80,0 60,200 0,200" /> 
   <polygon id="menu1" points="80,0 140,0 120,200 60,200" /> 
   <polygon id="menu2" points="140,0 200,0 180,200 120,200" /> 
   <polygon id="menu3" points="200,0 260,0 240,200 180,200" /> 
  </svg>  
 </body>
</html>

Related Tutorials