JSFiddle - React, Tailwind, and code Playground
by Clear
HTML
<a href="#"><div class="box" id="first">Home</div></a>
<a href="#"><div class="box" id="selected">Search</div></a>
<a href="#"><div class="box">Member List</div></a>
<a href="#"><div class="box">Calendar</div></a>
<a href="#"><div class="box" id="last">Help</div></a>
<br style="clear: both;" />
CSS
.box {
-webkit-transition:All 0.302s ease;
-moz-transition:All 0.302s ease;
-o-transition:All 0.302s ease;
font-size: 18px;
text-align: center;
line-height: 40px;
text-align: center;
height: 40px;
width: 120px;
color: #fff;
text-shadow: 0px -1px 0px #00516f;
margin-top: 15%;
-webkit-transform: rotate(0deg) scale(1) skew(0deg) translate(0px);
-moz-transform: rotate(0deg) scale(1) skew(0deg) translate(0px);
-o-transform: rotate(0deg) scale(1) skew(0deg) translate(10px);
float: left;
background-image: linear-gradient(bottom, rgb(0,128,174) 0%, rgb(0,163,222) 75%);
background-image: -o-linear-gradient(bottom, rgb(0,128,174) 0%, rgb(0,163,222) 75%);
background-image: -moz-linear-gradient(bottom, rgb(0,128,174) 0%, rgb(0,163,222,) 75%);
background-image: -webkit-linear-gradient(bottom, rgb(0,128,174) 0%, rgb(0,163,222) 75%);
background-image: -ms-linear-gradient(bottom, rgb(0,128,174) 0%, rgb(0,163,222) 75%);
background-image: -webkit-gradient(
linear,
left bottom,
left top,
color-stop(0, rgb(0,128,174)),
color-stop(0.75, rgb(0,163,222))
);
border-top: 1px solid #00516f;
border-bottom: 3px solid #00516f;
position: relative;
z-index: 10000;
opacity: 0.9;
font-family: Arial, Helvetica, sans-serif;
font-size: 15px;
}
#first {
-moz-border-radius-topleft: 8px;
-webkit-border-top-left-radius:8px;
border-top-left-radius:8px;
-moz-border-radius-bottomleft: 8px;
-webkit-border-bottom-left-radius:8px;
border-bottom-left-radius:8px;
border-left: 1px solid #00516f;
}
#last {
-moz-border-radius-topright: 8px;
-webkit-border-top-right-radius:8px;
border-top-right-radius:8px;
-moz-border-radius-bottomright: 8px;
-webkit-border-bottom-right-radius:8px;
border-bottom-right-radius:8px;
border-right: 1px solid #00516f;
}
.box:hover {
-webkit-transform: rotate(0deg) scale(1.149)...