JSFiddle - React, Tailwind, and code Playground

by nevitt99

HTML

<div class="project"><img src="images/dittrich.jpg">
<div class="text">This is a test.</div>

CSS

.project  {
	width:25%;
	height:auto;	
	border:5px solid #000855;	
	margin:2%;
	/* required to hide the image after resized */
	overflow:hidden;	
	/* display div in line */
	float:left;
	text-align: center;
}
.text {
	width:25%;
	height:auto;
	opacity:0;
	background:#000855;
}
.project:hover .text 
{
	opacity:0.9;
	text-align:justify;
	color:#758ea0;
	padding:1em;
}