JSFiddle - React, Tailwind, and code Playground
HTML
<ul class="nav">
<li class="settings">
<a href="#!" class="link">Lorem</a>
<a href="#!" class="link">Lorem</a>
<a href="#!" class="link">Lorem</a>
<a href="#!" class="link">Lorem</a>
</li>
<li class="chlenix">
<a href="#!" class="link">Lorem</a>
<a href="#!" class="link">Lorem</a>
<a href="#!" class="link">Lorem</a>
<a href="#!" class="link">Lorem?</a>
</li>
<li class="popa">
<a href="#!" class="link">Lorem</a>
<a href="#!" class="link">Lorem</a>
<a href="#!" class="link">Lorem</a>
<a href="#!" class="link">Lorem</a>
</li>
<li class="pizdets">
<a href="#!" class="link">Lorem</a>
<a href="#!" class="link">Loremь</a>
<a href="#!" class="link">Lorem</a>
<a href="#!" class="link">Убил бы</a>
</li>
</ul>
<div class="krutota">
какой-то важный контект
</div>
CSS
* {
box-sizing: border-box;
}
body {
font-family: 'Raleway', sans-serif;
background: rgba(255,194,183,0.8);
}
.nav {
list-style: none;
margin: 0;
padding: 0;
opacity: 0.5;
transition: opacity 1 ease-in-out;
}
.nav:hover {
opacity: 1;
}
.nav li {
height: 50px;
width: 37px;
overflow: hidden;
transition: all 1s ease-in-out;
}
.nav li:hover {
width: 200px;
height: 185px;
transition: all 1s ease-in-out;
}
.link {
display: block;
text-decoration: none;
color: black;
background: #bbb;
width: 200px;
height: 40px;
margin: 3px;
line-height: 40px;
padding-left: 15px;
transition: all 0.3s ease-in-out;
position: relative;
}
.link:hover {
background: #AE81E7;
}
.link:first-child {
font-size: 1.3em;
height: 50px;
line-height: 50px;
text-indent: 20px;
position: relative;
}
.link:first-child::before {
content: '';
position: absolute;
display: block;
height: 32px;
width: 32px;
top:9px;
left: 0;
}
.settings .link:first-child::before {
background: url(http://www.defaulticon.com/images/icons32x32/zoom-out.png?itok=EDadaDHr) center no-repeat;
}
.chlenix .link:first-child::before {
background: url(http://www.defaulticon.com/images/icons32x32/target.png?itok=s4Q6Ht5f) center no-repeat;
}
.popa .link:first-child::before {
background: url(http://www.defaulticon.com/images/icons32x32/view.png?itok=c5tn2A_w) center no-repeat;
}
.pizdets .link:first-child::before {
background: url(http://www.defaulticon.com/images/icons32x32/web.png?itok=cN_vYlrD) center no-repeat;
}
.krutota {
border: 5px solid black;
width: 500px;
height: 500px;
background: orange;
}