<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="css/style.css">
<title>Дверь</title>
</head>
<body>
<div class="hover-image-7">
<img src="http://dveri-familiya.ru/wp-content/uploads/2020/09/Page_00003_konsul-scaled.jpg" alt="" width="150" height="300">
<p class="over">Ваш текст</p>
<div>
<img src="http://dveri-familiya.ru/wp-content/uploads/2020/09/zoom.png" alt="">
<div class="curl"></div>
<a href="http://dveri-familiya.ru/wp-content/uploads/2020/09/Page_00003_konsul-scaled.jpg"></a>
</div>
</div>
</body>
</html>
.hover-image-7 * {
box-sizing: border-box;
}
.hover-image-7 {
color: #fff;
position: relative;
overflow: hidden;
display: inline-block;
background: #337ab7;
line-height: 0;
}
.hover-image-7 img {
opacity: 1;
transition: opacity 0.35s;
}
.hover-image-7 > div {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.hover-image-7 > div::before {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
content: "";
opacity: 0;
transition: opacity 0.4s;
background-image: linear-gradient(
45deg,
#337ab7 0%,
transparent 40%,
rgba(255, 255, 255, 0.15)
);
}
.hover-image-7:hover > div::before {
opacity: 1;
}
.hover-image-7 i,
.hover-image-7 div img {
transition: opacity 0.35s;
display: inline-block;
font-size: 36px;
width: 30px;
height: 30px;
color: #fff;
position: absolute;
bottom: 12px;
left: 12px;
opacity: 0;
z-index: 1;
}
.hover-image-7:hover i,
.hover-image-7:hover div img {
opacity: 1;
}
.hover-image-7 .curl {
width: 0px;
height: 0px;
position: absolute;
bottom: 0;
left: 0;
background: linear-gradient(
225deg,
#ffffff,
#f3f3f3 20%,
#bbbbbb 38%,
#aaaaaa 44%,
#888888 50%,
rgba(0, 0, 0, 0.7) 50%,
rgba(0, 0, 0, 0.4) 60%,
rgba(0, 0, 0, 0.3)
);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
transition: all 0.4s ease;
}
.hover-image-7 .curl:before,
.hover-image-7 .curl:after {
content: "";
position: absolute;
z-index: -1;
left: 12%;
bottom: 6%;
width: 70%;
max-width: 300px;
max-height: 100px;
height: 55%;
box-shadow: 0 12px 15px rgba(0, 0, 0, 0.3);
transform: skew(-10deg) rotate(-6deg);
}
.hover-image-7 .curl:after {
left: auto;
right: 6%;
bottom: auto;
top: 14%;
transform: skew(-15deg) rotate(-84deg);
}
.hover-image-7 a {
left: 0;
right: 0;
top: 0;
bottom: 0;
position: absolute;
}
.hover-image-7:hover .curl {
width: 90px;
height: 90px;
}
.hover-image-7 * {
box-sizing: border-box;
}
.hover-image-7 {
color: #fff;
position: relative;
overflow: hidden;
display: inline-block;
background: #337ab7;
line-height: 0;
}
.hover-image-7 img {
opacity: 1;
transition: opacity 0.35s;
}
.hover-image-7 > div {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.hover-image-7 > div::before {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
content: "";
opacity: 0;
transition: opacity 0.4s;
background-image: linear-gradient(
45deg,
#337ab7 0%,
transparent 40%,
rgba(255, 255, 255, 0.15)
);
}
.hover-image-7:hover > div::before {
opacity: 1;
}
.hover-image-7 i,
.hover-image-7 div img {
transition: opacity 0.35s;
display: inline-block;
font-size: 36px;
width: 30px;
height: 30px;
color: #fff;
position: absolute;
bottom: 12px;
left: 12px;
opacity: 0;
z-index: 1;
}
.hover-image-7:hover i,
.hover-image-7:hover div img {
opacity: 1;
}
.hover-image-7 .curl {
width: 0px;
height: 0px;
position: absolute;
bottom: 0;
left: 0;
background: linear-gradient(
225deg,
#ffffff,
#f3f3f3 20%,
#bbbbbb 38%,
#aaaaaa 44%,
#888888 50%,
rgba(0, 0, 0, 0.7) 50%,
rgba(0, 0, 0, 0.4) 60%,
rgba(0, 0, 0, 0.3)
);
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
transition: all 0.4s ease;
}
.hover-image-7 .curl:before,
.hover-image-7 .curl:after {
content: "";
position: absolute;
z-index: -1;
left: 12%;
bottom: 6%;
width: 70%;
max-width: 300px;
max-height: 100px;
height: 55%;
box-shadow: 0 12px 15px rgba(0, 0, 0, 0.3);
transform: skew(-10deg) rotate(-6deg);
}
.hover-image-7 .curl:after {
left: auto;
right: 6%;
bottom: auto;
top: 14%;
transform: skew(-15deg) rotate(-84deg);
}
.hover-image-7 a {
left: 0;
right: 0;
top: 0;
bottom: 0;
position: absolute;
}
.hover-image-7:hover .curl {
width: 90px;
height: 90px;
}
.over {
opacity: 1;
position: absolute;
top: 40%;
z-index: 2;
color: #6f2e2e;
display: block;
width: 100%;
text-align: center;
text-transform: uppercase;
text-shadow: 0px 0px 5px #fff;
transition: all 0.5s ease;
}
.hover-image-7:hover .over {
opacity: 0;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.