-
Notifications
You must be signed in to change notification settings - Fork 1
/
temp.html
89 lines (76 loc) · 1.9 KB
/
temp.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
<!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>Document</title>
<style>
html {
--g1: rgb(98, 0, 234);
--g2: rgb(236, 64, 122);
}
@keyframes background-pan {
from {
background-position: 0% center;
}
to {
background-position: -200% center;
}
}
body {
animation: background-pan 10s linear infinite;
background: linear-gradient(to right, var(--g1), var(--g2), var(--g1));
background-size: 200%;
height: 100vh;
overflow: hidden;
margin: 0px;
}
body.toggled {
animation: none;
}
body.toggled > #title {
opacity: 0;
}
body.toggled > #icon {
opacity: 1;
}
body.toggled > #tiles > .tile:hover {
opacity: 0.1 !important;
}
.centered {
left: 50%;
position: absolute;
top: 50%;
transform: translate(-50%, -50%);
}
#tiles {
height: calc(100vh - 1px);
width: calc(100vw - 1px);
position: relative;
z-index: 2;
display: grid;
grid-template-columns: repeat(var(--columns), 1fr);
grid-template-rows: repeat(var(--rows), 1fr);
}
.tile {
cursor: pointer;
position: relative;
}
.tile:hover:before {
background-color: rgb(30, 30, 30);
}
.tile:before {
background-color: rgb(15, 15, 15);
content: "";
inset: 0.5px;
position: absolute;
}
</style>
</head>
<body>
<div id="tiles"></div>
</body>
<script src="background.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/animejs/3.2.1/anime.min.js"></script>
</html>