.video-container { position: fixed; bottom: 12px; right: 0; width: 225px; height: 225px; z-index: 1; overflow: hidden; } .overlay-container { position: fixed; bottom: 0; right: 0; width: 225px; height: 225px; z-index: 2; } .overlay-container img { width: 100%; height: 100%; pointer-events: none; /* Ensure the image itself does not block interactions */ } .triangle-video { position: absolute; bottom: -76px; right: 15px; height: 265px; width:150px; z-index: 1; } .safari .triangle-video{ bottom: -75px; } .triangle-video video { width: 100%; height: 100%; object-fit: scale-down; border-radius:40px 170px 150px 25px; } #clickable-area { position: absolute; bottom: 0; right: 0; width: 225px; height: 225px; z-index: 3; clip-path: circle(250px at 100% 100%); /* Define the clickable area as a circle */ cursor: pointer; }
Overlay Image