<ul class="snip1189">
<li class="current"><a href="#">Home</a></li>
<li><a href="#">About Us</a></li>
<li><a href="#">Blog</a></li>
<li><a href="#">Services</a></li>
<li><a href="#">Products</a></li>
<li><a href="#">Contact</a></li>
</ul>
@import url(https://fonts.googleapis.com/css?family=Raleway:400,500);
.snip1189 {
font-family: 'Raleway', Arial, sans-serif;
text-align: center;
text-transform: uppercase;
font-weight: 500;
letter-spacing: 1px;
}
.snip1189 * {
-webkit-box-sizing: border-box;
box-sizing: border-box;
-webkit-transition: all 0.35s ease;
transition: all 0.35s ease;
}
.snip1189 li {
display: inline-block;
list-style: outside none none;
margin: 0 1em;
padding: 0;
}
.snip1189 a {
padding: 0.5em 0.8em;
margin: 0.2em 0;
display: block;
color: rgba(255, 255, 255, 0.5);
position: relative;
text-decoration: none;
}
.snip1189 a:before,
.snip1189 a:after {
height: 14px;
width: 14px;
position: absolute;
content: '';
-webkit-transition: all 0.35s ease;
transition: all 0.35s ease;
opacity: 0;
}
.snip1189 a:before {
left: 0;
top: 0;
border-left: 3px solid #c0392b;
border-top: 3px solid #c0392b;
-webkit-transform: translate(100%, 50%);
transform: translate(100%, 50%);
}
.snip1189 a:after {
right: 0;
bottom: 0;
border-right: 3px solid #c0392b;
border-bottom: 3px solid #c0392b;
-webkit-transform: translate(-100%, -50%);
transform: translate(-100%, -50%);
}
.snip1189 a:hover,
.snip1189 .current a {
color: #ffffff;
}
.snip1189 a:hover:before,
.snip1189 .current a:before,
.snip1189 a:hover:after,
.snip1189 .current a:after {
-webkit-transform: translate(0%, 0%);
transform: translate(0%, 0%);
opacity: 1;
}
This Pen doesn't use any external JavaScript resources.