Splash Image Masking

Home / Web Code Snippet / Splash Image Masking

Splash Image Masking


                                                          https://youtube.com/shorts/jo1xEM8roII?si=WrKQR5wpDHEOFIXK


HTML CODE :-
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title></title>
</head>
<body>
  <div class="container"></div>
</body>
</html>
CSS CODE :-
        body{
            padding: 0px;
            margin: 0px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .container{
            position: relative;
            width: 100%;
            min-height: 100vh;
            background-image: url(img/mount.jpeg);
            background-size: cover;
        }
        .container::before{
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url(img/ss.jpg);
            background-size: cover;
            background-position: center;
            mix-blend-mode: screen;
        }