A simple menu that uses CSS3

by sanaullah Rais

HTML

<!-- A Google Font, not necessary, but looks good -->
<link href='http://fonts.googleapis.com/css?family=Gudea' rel='stylesheet' type='text/css'>
<!-- #content to center the menu -->
<div id="content">
    <!-- This is the actual menu --> 
	<ul id="darkmenu">
          <li><a href="#">First Item</a></li>
          <li><a href="#">Second Item</a></li>
          <li><a href="#">Third Item</a></li>
     </ul>
</div>

CSS

/* The body, gives an example how the background should look like */
body {
    background: #063d4c;
    -webkit-box-shadow: inset 0px 0px 150px 0px rgba(0, 0, 0, 0.8);
    -moz-box-shadow: inset 0px 0px 150px 0px rgba(0, 0, 0, 0.8);
    box-shadow: inset 0px 0px 150px 0px rgba(0, 0, 0, 0.8);
    width: 100%;
    height: 100%;
    position: absolute;
    margin: 0;
}
/* These create the flashes */
@-webkit-keyframes hover {
    0% { background: #bdedfa }
    100% { background: #063d4c }
}
@-moz-keyframes hover {
    0% { background: #bdedfa }
    100% { background: #063d4c }
}
@-ms-keyframes hover {
    0% { background: #bdedfa }
    100% { background: #063d4c }
}
@-o-keyframes hover {
    0% { background: #bdedfa }
    100% { background: #063d4c }
}
@keyframes hover {
    0% { background: #bdedfa }
    100% { background: #063d4c }
}
/* Again, #content is only there to center the menu */
#content {
	text-align: center; 
	width: 100%; 
	height: 100%;}
/* Here you go: This is what you need to get this menu */
ul#darkmenu {
    margin-top: 3%;        				/* Well, you don't need this... */
    display: inline-block;  				/* ... and this, this just centers the menu. */ 
    list-style: none;
    font-family: 'Gudea', sans-serif;	   /* Change this to use another font */
    -webkit-transition: all 0.2s linear;
    -moz-transition: all 0.2s linear;
    -ms-transition: all 0.2s linear;
    -o-transition: all 0.2s linear;
    transition: all 0.2s linear;
}
ul#darkmenu li {
    -webkit-transition: -webkit-box-shadow, background 0.2s linear;
    -moz-transition: -moz-box-shadow, background 0.2s linear;
    -ms-transition: -moz-box-shadow, background 0.2s linear;
    -o-transition: -o-box-shadow, background 0.2s linear;
    transition: box-shadow, background 0.2s linear;
    background: #565656;
    float: left;
    text-shadow: 0px -1px 0px black;
    font-size: 13px;
    text-transform: uppercase;
    -webkit-box-shadow: inset 0px 1px 0px 0px rgba(255, 255, 255, 0.1), 0px...