JSFiddle - React, Tailwind, and code Playground
by John Grivas
HTML
<div id="main">
<ul id="navigationMenu">
<li>
<a class="rotate home" href="#">
<span>home</span>
</a>
</li>
<li>
<a class="rotate about" href="#">
<span>About</span>
</a>
</li>
<li>
<a class="rotate services" href="#">
<span>Services</span>
</a>
</li>
<li>
<a class="rotate contact" href="#">
<span>Contact</span>
</a>
</li>
</ul>
</div>
CSS
body{
font-size:14px;
color:#666;
background:#111 no-repeat;
font-family:Arial, Helvetica, sans-serif;
}
#navigationMenu li{
list-style:none;
padding:2px;
width:15px;
padding:10px;
display:inline-block;
}
#navigationMenu ul{
list-style:none;
}
#navigationMenu span{
/* Container properties */
width:0;
left:38px;
padding:5px;
overflow:hidden;
/* Text properties */
font-family:'Myriad Pro',Arial, Helvetica, sans-serif;
font-size:18px;
font-weight:bold;
letter-spacing:0.6px;
white-space:nowrap;
line-height:39px;
/* CSS3 Transition: */
-webkit-transition: 0.25s;
/* Future proofing (these do not work yet): */
-moz-transition: 0.25s;
transition: 0.25s;
}
#navigationMenu a{
display:block;
position:relative;
}
/* General hover styles */
#navigationMenu a:hover span{ width:20px; padding-left:15px;overflow:visible; }
#navigationMenu a:hover{
text-decoration:none;
/*CSS outer glow with the box-shadow property
-moz-box-shadow:0 0 5px #9ddff5;
-webkit-box-shadow:0 0 5px #9ddff5;
box-shadow:0 0 5px #9ddff5;*/
}
/* Blue Button */
#navigationMenu .home span{
background-color:#1e8bb4;
color:#223a44;
text-shadow:1px 1px 0 #44a8d0;
}
/* Orange Button */
#navigationMenu .about span{
background-color:#c86c1f;
color:#5a3517;
text-shadow:1px 1px 0 #d28344;
}
/* Yellow Button */
#navigationMenu .services span{
background-color:#d0a525;
color:#604e18;
text-shadow:1px 1px 0 #d8b54b;
}
/* Purple Button */
#navigationMenu .contact span{
background-color:#af1e83;
color:#460f35;
text-shadow:1px 1px 0 #d244a6;
}
/* The styles below are only needed for the demo page */
#main{
margin:80px auto;
position:relative;
width:240px;
}
a, a:visited,a:active {
color:#0196e3;
text-decoration:none;
outline:none;
}
a:hover{
text-decoration:underline;
}
a img{
border:none;
}
.rotate {
/* Safari */
-webkit-transform: rotate(-270deg);
/* Firefox */
-moz-transform: rotate(-270deg);
/* IE */
-ms-transform: rotate(-270deg);
/* Opera...