<body>
<section id="main">
<div class="image"></div>
</section>
</body>
body {
margin: 0px;
padding: 0px;
font-family: "Poppins", sans-serif;
background: #22232e;
}
* {
box-sizing: border-box;
scroll-behavior: smooth;
}
#main {
width: 100%;
min-height: 100vh;
background: #22232e;
display: flex;
align-items: center;
justify-content: center;
}
.image{
background-image: url(https://omjsblog.files.wordpress.com/2023/11/1.jpg);
background-size: cover;
background-position: center;
background-repeat: no-repeat;
width: 350px;
height: 200px;
position: relative;
}
.image::before{
content: '';
position: absolute;
top: 102%;
left: 0;
width: 350px;
height: 200px;
background-image: url(https://omjsblog.files.wordpress.com/2023/11/1.jpg);
background-size: cover;
background-position: center;
background-repeat: no-repeat;
transform: scaleY(-1);
opacity: 0.2;
}
.image::after{
content: '';
position: absolute;
top: 102%;
left: 0;
width: 350px;
height: 200px;
background-image: linear-gradient(transparent, #22232e 50%);
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.