-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathend.html
129 lines (117 loc) · 3.93 KB
/
end.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<!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>Start</title>
<link rel="stylesheet" href="style.css">
<style>
.text-container {
width: 100%;
height: 100%;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
background-color: var(--col-accent);
font-size: 150%;
animation: colors 20s ease-in-out infinite;
}
h1, h2, h3, h4, h5, h6 {
display: inline-block;
}
h1 {
margin: 0;
margin-top: -20pt;
font-variation-settings: 'wght' 100, 'wdth' 85;
line-height: 1em;
font-size: 200px;
}
h1 {
color: var(--col-foreground);
}
h1 .char {
--delay: calc((var(--char-index) + 1) * 200ms);
animation: breatheShadow 4000ms infinite forwards;
animation-delay: var(--delay);
-webkit-text-stroke: 2px var(--col-foreground);
}
@keyframes colors {
0% {
filter: hue-rotate(0deg);
}
20% {
filter: hue-rotate(90deg);
}
40% {
filter: hue-rotate(180deg);
}
80% {
filter: hue-rotate(90deg);
}
100% {
filter: hue-rotate(0deg);
}
}
/* Copied from https://plex-vf-cdn.now.sh/style.css */
/* Define variable font faces */
@font-face {
font-family: 'Ibm Plex Sans Variable';
src: url('https://plex-vf-cdn.now.sh/Italic.woff2') format('woff2-variations'),
url('https://plex-vf-cdn.now.sh/Italic.woff2') format('woff2');
font-weight: 100 700;
font-stretch: 85 100;
font-display: fallback;
}
/* If variable fonts are supported, use the new font-family
and define some css helper variables */
@supports (font-variation-settings: normal) {
body {
font-family: 'IBM Plex Sans Variable', 'Helvetica Neue', Arial, sans-serif;
}
:root {
--thin: 'wght' 100, 'wdth' 100;
--extra-light: 'wght' 200, 'wdth' 100;
--light: 'wght' 300, 'wdth' 100;
--regular: 'wght' 400, 'wdth' 100;
--text: 'wght' 450, 'wdth' 100;
--medium: 'wght' 500, 'wdth' 100;
--semi-bold: 'wght' 600, 'wdth' 100;
--bold: 'wght' 700, 'wdth' 100;
--thin-condensed: 'wght' 100, 'wdth' 85;
--extra-light-condensed: 'wght' 200, 'wdth' 85;
--light-condensed: 'wght' 300, 'wdth' 85;
--regular-condensed: 'wght' 400, 'wdth' 85;
--text-condensed: 'wght' 450, 'wdth' 85;
--medium-condensed: 'wght' 500, 'wdth' 85;
--semi-bold-condensed: 'wght' 600, 'wdth' 85;
--bold-condensed: 'wght' 700, 'wdth' 85;
--col-foreground: white;
--col-background: black;
}
}
@keyframes breatheShadow {
20% {
color: transparent;
}
40% {
font-variation-settings: 'wght' 900, 'wdth' 100;
}
60% {
color: var(--col-foreground);
font-variation-settings: 'wght' 100, 'wdth' 85;
}
}
</style>
<script src="https://unpkg.com/splitting/dist/splitting.min.js"></script>
</head>
<body>
<div class="text-container" onclick="_switch()">
<h1 data-splitting>stream ending</h1>
</div>
<script type="text/javascript">
Splitting();
</script>
</body>
</html>