-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathstyle.css
101 lines (98 loc) · 1.56 KB
/
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
*
{
margin: 0;
padding: 0;
}
section
{
height: auto;
background: #000;
background-repeat: no-repeat;
}
section:before
{
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to right, #f00, #f00, #0f0, #0ff, #ff0, #0ff);
pointer-events: none;
mix-blend-mode: color;
}
h1
{
margin: 0;
padding: 0;
position: absolute;
top: 50%;
-webkit-transform: translateY(-50%);
-moz-transform: translateY(-50%);
-ms-transform: translateY(-50%);
-o-transform: translateY(-50%);
transform: translateY(-50%);
width: 100%;
text-align: center;
color: #ddd;
font-size: 5rem;
font-family: sans-serif;
letter-spacing: 1rem;
}
video
{
object-fit: contain;
}
h1 span
{
display: inline-block;
opacity: 0;
animation: animate 1s linear forwards;
}
@keyframes animate
{
0%
{
opacity: 0;
-webkit-transform: rotateY(90deg);
-moz-transform: rotateY(90deg);
-ms-transform: rotateY(90deg);
-o-transform: rotateY(90deg);
transform: rotateY(90deg);
filter: blur(10px);
}
100%
{
opacity: 1;
filter: blur(0);
-webkit-transform: rotateY(0deg);
-moz-transform: rotateY(0deg);
-ms-transform: rotateY(0deg);
-o-transform: rotateY(0deg);
transform: rotateY(0deg);
}
}
h1 span:nth-child(1)
{
animation-delay: 1s;
}
h1 span:nth-child(2)
{
animation-delay: 2s;
}
h1 span:nth-child(3)
{
animation-delay: 2.5s;
}
h1 span:nth-child(4)
{
animation-delay: 3.0s;
}
h1 span:nth-child(5)
{
animation-delay: 3.5s;
}
h1 span:nth-child(6)
{
animation-delay: 4s;
}