<div class="effects">
<img src="image.jpg" alt="">
<div>
<h2>Текст</h2>
<p>Заголовок</p>
<a>Подробнее</a>
</div>
</div>
.effects {
position: relative;
display: inline-block;
box-shadow: 1px 3px 1px 0 rgba(0, 0, 0, 0.08);
border:1px solid #cfcfcf;
background-color: #fff;
font: normal 14px sans-serif;
margin: 20px;
border: 5px solid #fff;
overflow: hidden;
font-family: 'Roboto', sans-serif;
font-size: 14px;
max-height: 200px;
}
.effects img {
display: block;
position: relative;
max-width:100%;
height:auto;
display: block;
margin-left: auto;
margin-right: auto;
}
.effects div {
width: calc(100% - 20px);
height: 100%;
position: absolute;
overflow: hidden;
top: 0;
left: 0;
padding: 10px;
text-align: center;
}
.effects a {
display: inline-block;
text-decoration: none;
padding: 7px 14px;
background: #000;
color: #fff;
font-family: 'Roboto', sans-serif;
font-size: 14px;
}
.effects a:hover {
background: #ff0000;
}
.effects div {
opacity: 0;
background-color: rgba(0, 0, 0, 0.15);
transition: all 0.4s ease-in-out;
color: #fff;
transform: translate(0px, 90px) rotate(0deg);
}
.effects:hover div {
opacity: 1;
transform: translate(0px, 0px) rotate(0deg);
}