Video In Text
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"> <video src="https://cdn.pixabay.com/video/2021/07/24/82636-580974567_tiny.mp4" autoplay muted loop></video> <h1>Saksham<br><span>Digital</span><span>Technology</span></h1> </div> </body> </html> |
CSS CODE:-
*{ padding: 0px; margin: 0px; } .container{ position: absolute; width: 100%; height: 100vh; overflow: hidden; } .container h1{ position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; flex-direction: column; text-transform: uppercase; font-size: 11vw; color: white; line-height: 140px; background: black; mix-blend-mode: multiply; } video{ position: absolute; top: 0; left: 0; height: 100%; width: 100%; object-fit: cover; } |