-
-
Notifications
You must be signed in to change notification settings - Fork 30
/
overlayLabel.html
59 lines (55 loc) · 1.3 KB
/
overlayLabel.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Twitchat labels</title>
<style>
body {
padding: 0;
margin: 0;
background-color: black;
overflow: hidden;
}
#error{
display: none;
background-color: var(--color-alert);
border-radius: var(--border-radius);
width: 100vw;
height: 100vh;
position: absolute;
top: 0;
left: 0;
flex-direction: column;
align-items: center;
justify-content: center;
color: #ffffff;
font-weight: bold;
font-size: 8vw;
}
#app {
display: inline-block;
overflow: hidden;
}
scroll {
display: inline-block;
animation: marquee 0s linear infinite;
will-change: transform, left;
transform: translateX(0);
left: 100%;
position: relative;
}
@keyframes marquee {
0% { transform: translateX(0); left:100%; }
100% { transform: translateX(-100%); left:0; }
}
</style>
</head>
<noscript>
<strong>We're sorry but Twitchat cannot work without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<div id="error" id="NOT_FOUND">LABEL NOT FOUND</div>
<script type="module" src="/src_front/overlayLabel.ts"></script>
</body>
</html>