JSFiddle - React, Tailwind, and code Playground

by Trolstover

HTML

<div class="headCar">
	<ul>
		<li>A</li>
		<li>H</li>
		<li>C</li>
	</ul>
	<div class="info">
		<h1>THIS AND MORE TEXT</h1>
	</div>
	
</div>

CSS

html,*{
	padding:0;
	margin:0;
}
html{
	height: 100%;
}
body{
	height: 100%;
	width: 100%;
}
.headCar ul{
  	width: 30%;
    	height: 50px;
    	position: absolute;
    	margin: auto;
    	margin-top: 100px;
    	left: 0;
    	right: 0;
}
.headCar ul li{
	position: relative;
	list-style-type: none;
	float: left;
	font-size: 19px;
	margin-left: 50px;
	cursor: pointer;
}
.headCar ul li:before{
	content: "";
      	box-sizing: border-box;
      	position: absolute;
     	bottom: -2px;
     	width: 100%;
     	height: 2px;
      	z-index: 10;
      	background-color: #ff3554;
      	-webkit-transform: scaleX(0);
      	-ms-transform: scaleX(0);
      	transform: scaleX(0);
     	-webkit-transition: all 0.3s ease-in-out 0s;
     	transition: all 0.3s ease-in-out 0s; 
}
.headCar ul li:hover:before{
	-webkit-transform: scaleX(1);
      	-ms-transform: scaleX(1);
      	transform: scaleX(1);

}
.info{
  text-align:center;
	width: 50%;
    	margin: 0 auto; 
}