JSFiddle - React, Tailwind, and code Playground

HTML

<!DOCTYPE HTML>
<html>
    <body>
        <a href="www.ign.com">hejsansvejsan</a>
    </body>    
</html>

CSS

a {
	display: inline-block;
	position: relative;
  text-decoration:none;
}
a:after {
	content: '';
	display: block;
	margin: auto;
	height: 1px;
	width: 0px;
	background: transparent;
	transition: width .5s ease, background-color .5s ease;
}
a:hover:after {
	width: 100%;
	background: blue;
}