JSFiddle - React, Tailwind, and code Playground
HTML
<nav>
<ul>
<li><a href="#">home</a></li>
<li><a href="#">references</a></li>
<li><a href="#">competences</a></li>
<li><a href="#">contact</a></li>
</ul>
<strong>hover this section</strong>
</nav>
CSS
html {
font-family: "Lucida Grande", "Lucida sans", Helvetica, Arial, sans-serif;
}
nav {
position: relative;
padding: 20px;
background: rgba(0,0,0,.05);
height: 80px;
margin: 40px 0 0;
}
nav ul {
background: rgba(0,0,0,.6);
overflow: auto;
padding: 5px 15px;
margin-top: -120px;
-moz-border-radius: 20px;
-webkit-border-radius: 20px;
border-radius: 20px;
-moz-box-shadow: 0 0 3px rgba(0,0,0,1);
-webkit-box-shadow: 0 0 3px rgba(0,0,0,1);
box-shadow: 0 0 3px rgba(0,0,0,1);
-moz-transition: 0.3s all ease-out;
-webkit-transition: 0.3s all ease-out;
transition: 0.3s all ease-out;
pointer-events:none;
}
nav:hover ul {
pointer-events:auto;
margin-top: 10px;
background: rgba(0,0,0,1);
-moz-box-shadow: 0 0 3px rgba(0,0,0,0);
-webkit-box-shadow: 0 0 3px rgba(0,0,0,0);
box-shadow: 0 0 3px rgba(0,0,0,0);
}
nav ul li {
float: left;
margin: 0 5px 0 0;
}
nav ul li a {
text-decoration: none;
color: rgba(255,255,255,.05);
text-shadow: 0 0 3px rgba(255,255,255,1);
-moz-transition: 0.3s all ease-out;
-webkit-transition: 0.3s all ease-out;
transition: 0.3s all ease-out;
}
nav:hover ul li a {
color: rgba(255,255,255,1);
text-shadow: 0 0 3px rgba(255,255,255,0);
}
nav:hover ul li a:hover {
color: rgba(255,255,255,.2);
text-shadow: 0 0 2px rgba(255,255,255,1);
}
nav strong {
position: absolute;
display: block;
text-align: center;
left:20px;
bottom:0px;
left: 0px;
}