<ul>
	<li><a href="#" data-hover="Home">Home</a></li>
	<li><a href="#" data-hover="About">About</a></li>
	<li><a href="#" data-hover="Works">Works</a></li>
	<li><a href="#" data-hover="Blog">Blog</a></li>
	<li><a href="#" data-hover="Contact">Contact</a></li>
</ul>
ul {
	position: absolute;
	top: 50%;
	left: 50%;
	-webkit-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
	white-space: nowrap;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
}
ul li {
	display: inline-block;
	margin: 0 2em;
}
ul li a {
	position: relative;
	display: inline-block;
	padding: .2em 0;
	color: #333;
	font-family: 'Open Sans', sans-serif;
	font-weight: 400;
	line-height: 1;
	text-transform: uppercase;
	text-decoration: none;
}
ul li a::after {
	position: absolute;
	top: 0;
	left: 0;
	content: attr(data-hover);
	display: block;
	width: 0;
	padding: .2em 0;
	color: #aaa;
	transition: .3s ease-in-out;
	overflow: hidden;
}
ul li a:hover::after,
ul li a:focus::after {
	width: 100%;
}

External CSS

  1. https://fonts.googleapis.com/css?family=Open+Sans

External JavaScript

This Pen doesn't use any external JavaScript resources.