Video And CSS Effects



<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body>
<video src="particles.mp4" muted="" autoplay=""></video>
<h2><span>P</span>articles Di <span>st</span>ortion Effects</h2>
</body>
</html>
<style type="text/css">
*{
margin: 0px;
padding: 0px;
font-family: 'Poppins', sans-serif;;
}
body{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background-color: #000;
}
h2{
position: relative;
margin: 20px 0 0;
font-size: 4em;
font-weight: 900;
color: #fff;
margin: 20px 0 0;
z-index: 1;
overflow: hidden;
}
h2:before{
content: '';
position: absolute;
left: 120%;
width: 120%;
height: 100%;
background: linear-gradient(90deg, transparent 0%, #000 5%, #000 100%);
animation: animate 5.5s linear forwards;
animation-delay: 2s;
}
@keyframes animate{
0%{
left: 110%;
}
100%{
left: -20%;
}
}
h2 span{color: #ff022c;}
video{
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
object-fit: cover;
z-index: 2;
pointer-events: none;
mix-blend-mode: screen;
}
</style>


https://drive.google.com/file/d/1Y0vlpCxoDfldLp7ahABwPlGECHQ-ajSO/view

Comments

Popular posts from this blog

Right click disable

Call Desktop