JSFiddle - React, Tailwind, and code Playground
HTML
<div class="image-box">
<div class="image"></div>
<div class="image-meta">
<h2>TITLE</h2>
<p>copy is here</p>
</div>
</div>
CSS
.image-box{
width: 300px;
overflow:hidden;
position: relative;
}
.image {
text-align: center;
width:300px;
height:200px;
background: url("http://lorempixel.com/300/200");
background-position:center;
transition: all 1s ease;
-moz-transition: all 1s ease;
-ms-transition: all 1s ease;
-webkit-transition: all 1s ease;
-o-transition: all 1s ease;
transform: scale(1.2);
-moz-transform: scale(1.2);
-webkit-transform: scale(1.2);
-o-transform: scale(1.2);
-ms-transform: scale(1.2); /* IE 9 */
}
.image-box:hover .image {
transform: scale(1);
-moz-transform: scale(1);
-webkit-transform: scale(1);
-o-transform: scale(1);
-ms-transform: scale(1); /* IE 9 */
}
.image-meta {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
}
h2 {
padding: 10px 0 0 0;
}
h2, p {
margin: 0;
padding: 0;
transform: scale(0.8333);
-moz-transform: scale(0.8333);
-webkit-transform: scale(0.8333);
-o-transform: scale(0.8333);
-ms-transform: scale(0.8333); /* IE 9 */
}