-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
64 lines (60 loc) · 934 Bytes
/
style.css
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
@import url('');
*
{
margin:0;
padding: 0%;
font-family: 'poppins',sans-serif;
}
body
{
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #000;
}
h2{
position: relative;
margin: 20px 0 0;
font-size: 5em;
font-weight: 900;
color: #fff;
z-index:1;
overflow: hidden;
}
h2::before
{
content: '';
position: absolute;
left:110%;
width: 140%;
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: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: 2;
pointer-events: none;
mix-blend-mode: screen;
}