-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
105 lines (91 loc) · 2.58 KB
/
index.html
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
102
103
104
105
<!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>Welcome</title>
</head>
<body>
<h1 class="glitch-1" data-content="Welcome!">Welcome!</h1>
<h2 class="glitch-2 animation-delay" data-content="Imagine a cool page soon...">Imagine a cool page soon...</h2>
<style>
@import url("https://fonts.googleapis.com/css?family=Fira+Mono:400");
:root {
font-size: 80%;
font-family: "Fira Mono", monospace;
}
body {
display: flex;
width: 100vw;
max-width: 100%;
height: 100vh;
max-height: 100%;
flex-flow: column wrap;
place-content: center center ;
margin: 0;
background: #131313;
color: #fff;
}
h1 {
font-size: 5rem;
font-weight: 800;
}
h2 {
font-size: 2.5rem;
font-weight: 500;
}
.glitch-1 { animation: glitch 900ms ease-out infinite; }
.glitch-2 { animation: glitch 650ms ease-in infinite; }
.glitch-1:before, .glitch-1:after,
.glitch-2:before, .glitch-2:after {
content: attr(data-content);
position: absolute;
left: 0;
}
.glitch-1:before, .glitch-2:before {
animation: glitchTop 1s linear infinite;
clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
-webkit-clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
}
.glitch-1:after, .glitch-2:after {
animation: glitchBotom 1.5s linear infinite;
clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
-webkit-clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
}
@keyframes glitch {
2%, 64% {
transform: translate(2px, 0) skew(0deg);
}
4%, 60% {
transform: translate(-2px, 0) skew(0deg);
}
62% {
transform: translate(0, 0) skew(5deg);
}
}
@keyframes glitchTop {
2%, 64% {
transform: translate(2px, -2px);
}
4%, 60% {
transform: translate(-2px, 2px);
}
62% {
transform: translate(13px, -1px) skew(-13deg);
}
}
@keyframes glitchBotom {
2%, 64% {
transform: translate(-2px, 0);
}
4%, 60% {
transform: translate(-2px, 0);
}
62% {
transform: translate(-22px, 5px) skew(21deg);
}
}
</style>
</body>
</html>