JSFiddle - React, Tailwind, and code Playground

HTML

<div data-content="TEXT THAT NEEDS TO BE POSITIONED" class="teamleft">
</div>

CSS

.teamleft
{
position: absolute;
width:50%;
height: 100%;
background-color: #25335a;
}
.teamleft:after
{
position: absolute;
width: 100%;
height: 100%;
content: attr(data-content);
color:#fff;
background:rgba(0,0,0,0.6);
opacity:0;
transition: all 0.5s;
-webkit-transition: all 0.5s;
}
.teamleft:hover:after
{
opacity:1;
}