Source codes:
<!DOCTYPE html>
<html>
<head>
<title> </title>
<link rel=”stylesheet” href=”https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css”>
<style type=”text/css”>
body{
padding: 0;
margin: 0;
padding-block: 100px;
width: 100%;
height: 100vh;
}
ul{
position: relative;
transform: skewY(-15deg);
left: 50%;
top: 10%;
}
li{
position: relative;
list-style: none;
width: 200px;
padding: 15px;
background: #3e3f46;
z-index: calc(1 * var(–i));
transition: 0.5s;
}
li:hover{
background: #996fae;
transform: translateX(-50px);
}
li::before{
font-family: “FontAwesome”;
color: #999;
display: flex;
justify-content: center;
align-items: center;
content: attr(data-icon);
position: absolute;
top: 0;
left: -40px;
width: 40px;
height: 100%;
background: #2e3233;
transform-origin: right;
transform: skewY(45deg);
transform: 0.5s;
}
li::after{
content: “”;
position: absolute;
top: -40px;
left: 0px;
width: 100%;
height: 40px;
background: #35383e;
transform-origin: bottom;
transform: skewX(45deg);
transition: 0.5s;
}
li:hover::after{
background: #86589d;
}
li a{
text-decoration: none;
color: #999;
display: block;
text-transform: uppercase;
letter-spacing: 0.05em;
transition: 0.5s;
}
li:hover a{
color: #fff;
}
li:last-child::after{
box-shadow: -120px 120px 20px rgba(0, 0, 0, 0.25);
}
</style>
</head>
<body>
<ul>
<li style=”–i:6;” data-icon=”″>
<a href=”#”>Home</a>
</li>
<li style=”–i:5;” data-icon=””>
<a href=”#”>About</a>
</li>
<li style=”–i:4;” data-icon=””>
<a href=”#”>Services</a>
</li>
<li style=”–i:3;” data-icon=””>
<a href=”#”>Portfolio</a>
</li>
<li style=”–i:2;” data-icon=””>
<a href=”#”>Our Team</a>
</li>
<li style=”–i:1;” data-icon=”@″>
<a href=”#”>Contact</a>
</li>
</ul>
</body>
</html>