Learn how to create css reflective shadow
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="./card.css">
<title>Card</title>
</head>
<body>
<div class="container">
<div class="card">
<img src="./image.jpg" alt="">
</div>
</div>
</body>
</html>
CSS
*{
margin: 0;
padding: 0;
}
.container{
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.card{
width: 20em;
position: relative;
}
.card > img{
width: 100%;
border-radius: .5em;
-webkit-border-radius: .5em;
-moz-border-radius: .5em;
-ms-border-radius: .5em;
-o-border-radius: .5em;
}
.card::after{
content: "";
background-image: url("/image.jpg");
width: 100%;
height: 100%;
position: absolute;
top: 25px;
left: 15px;
background-size: cover;
filter: blur(15px);
-webkit-filter: blur(15px);
z-index: -99;
}