How to Place VIDEO inside Text using Html & CSS
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=\, initial-scale=1.0">
<title>Video in TEXT</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<video src="cloud.mp4" autoplay muted loop></video>
<h1>INSANE</h1>
</body>
</html>
CSS
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Arial, Helvetica, sans-serif;
}
video{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
h1{
position: relative;
top: 0;
left: 0;
background: #fff;
font-size: 17vw;
line-height: 100vh;
text-align: center;
font-weight: 900;
mix-blend-mode: screen ;
}
Comments
Post a Comment