JSFiddle - React, Tailwind, and code Playground
HTML
<div id="images">
<div id="image">
<div class="image">
<img src="https://dab1nmslvvntp.cloudfront.net/wp-content/uploads/2017/08/1501862810blinking-eye-quake.gif" width="275px" height="200px" />
</div>
<div class="text">
<span>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</span>
</div>
</div>
</div>
CSS
#images, #image .image {
width: 275px;
height: 200px;
}
#image .text {
display: none;
background: #000;
}
#image span {
color: #ccc;
padding: 2px;
}
JavaScript
$(document).ready(function () {
$("#image img").click(function () {
$("#image .text").slideToggle();
});
});