JSFiddle - React, Tailwind, and code Playground
HTML
<div class="item">
<div class="item__base">
<img src="https://i.gyazo.com/48ba48e8a5181fbf0db18f94c8cfcbef.png" alt="">
<p>Some title</p>
</div>
<div class="item__base item__base_hover">
<img src="https://i.gyazo.com/48ba48e8a5181fbf0db18f94c8cfcbef.png" alt="">
<p>Some title</p>
<p>Some title</p>
<p>Some title</p>
</div>
</div>
<div class="item">
<div class="item__base">
<img src="https://i.gyazo.com/48ba48e8a5181fbf0db18f94c8cfcbef.png" alt="">
<p>Some title</p>
</div>
<div class="item__base item__base_hover">
<img src="https://i.gyazo.com/48ba48e8a5181fbf0db18f94c8cfcbef.png" alt="">
<p>Some title</p>
<p>Some title</p>
<p>Some title</p>
<p>Some title</p>
<p>Some title</p>
</div>
</div>
<div class="item">
<div class="item__base">
<img src="https://i.gyazo.com/48ba48e8a5181fbf0db18f94c8cfcbef.png" alt="">
<p>Some title</p>
</div>
<div class="item__base item__base_hover">
<img src="https://i.gyazo.com/48ba48e8a5181fbf0db18f94c8cfcbef.png" alt="">
<p>Some title</p>
<p>Some title</p>
<p>Some title</p>
<p>Some title</p>
<p>Some title</p>
</div>
</div>
CSS
body {
margin: 0px;
padding: 0px;
font-size:15px;
font-family: Open Sans;
color: #667;
font-weight: 600;
}
.item {
position: relative;
float: left;
width: 50%;
}
.item:hover .item__base_hover {
opacity: 1;
max-height: 1000px;
height: auto;
z-index: 5;
}
.item__base {
position: relative;
z-index: 1;
padding: 10px;
margin: 5px;
height: 120px;
background-color: #fff;
border: 1px solid transparent;
}
.item__base_hover {
position: absolute;
top: 0;
left: 0;
right: 0;
max-height: 100%;
transition: all .5s ease;
z-index: 0;
overflow: hidden;
opacity: 0;
}