-
Notifications
You must be signed in to change notification settings - Fork 0
/
SAMPLE1
75 lines (70 loc) · 1.84 KB
/
SAMPLE1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>smoke effect on Name</title>
<style>
@keyframes smoke {
0% {
transform: translateY(0%);
opacity: 1;
}
100% {
transform: translateY(-200%);
opacity: 0;
}
}
section {
position: relative;
height: 200px;
overflow: hidden;
}
video {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: 1;
}
h1 {
position: relative;
font-size: 3rem;
text-align: center;
margin: 0;
padding: 0;
color: transparent;
z-index: 2;
}
h1 span {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(180deg, #f9d71c 0%, #f9d71c 50%, transparent 50%);
animation: smoke 3s linear infinite;
clip-path: path('M0,0 H100% V100% H0% Z');
}
@for $i from 2 through 20 {
h1 span:nth-child(#{$i}) {
animation-delay: #{($i - 1) * 0.333}s;
}
}
</style>
</head>
<body>
<section>
<video src="https://www.learningcontainer.com/wp-content/uploads/2020/05/sample-mp4-file.mp4" autoplay muted loop></video>
<h1>
@for $i from 1 through 20 {
<span></span>
}
Your Name
</h1>
</section>
</body>
</html>