JSFiddle - React, Tailwind, and code Playground
HTML
<div class="box">
<div class="box-hover">xcxc</div>
<div class="box-image">
<img src="https://lh5.googleusercontent.com/mqHWHd2jm2141eD4SWowcIss1FwGmdZm3f0DxO0HCxYyWepZn8YyIKrMyrYKBlmGYU6zjiV-UQ=s460-h340-e365" />
<div class="box-tresc">xxxxxxxxxxxxxxxxxxxxxxxxx</div>
</div>
<div class="box-text">Theme 2.0
<br><span>Created by: <em>User</em></span>
</div>
</div>
CSS
.box-tresc {
display:none;
position:absolute;
margin:-110px 0 0 50px;
}
body {
font-family:'Open Sans', arial, sans-serif;
}
.box {
width: 300px;
min-height: 200px;
background-color: #ECECEC;
border: 1px solid #C6C6C6;
border-radius: 3px;
text-align: left;
}
.box-hover {
background-color: black;
position: absolute;
width: 290px;
height: 185px;
margin: 5px 5px 0 5px;
display: none;
opacity: 0.7;
}
.box-image {
margin: 5px 5px 0 5px;
}
.box-image img {
width: 290px;
height: 185px;
}
.box-text {
padding: 5px;
font-size: 13px;
font-weight: bold;
color: #262626;
height: 30px;
}
.box-text span {
font-size: 10px;
font-weight: normal;
}
JavaScript
$(".box").hover(function () {
$(this).find('.box-hover').fadeIn(100);
$(".box-tresc").show();
},
function () {
$(this).find('.box-hover').fadeOut(100);
$(".box-tresc").hide();
});