-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcubic_discord.css
51 lines (51 loc) · 1.28 KB
/
cubic_discord.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
html {
display: flex;
background: black;
--cube-size: 800px;
}
body {
width: var(--cube-size);
height: var(--cube-size);
margin: auto;
transform-style: preserve-3d;
animation: how 20s linear infinite;
background: transparent;
}
@keyframes how {
from {
transform: rotate3d(1, 1, 1, 0turn);
}
to {
transform: rotate3d(1, 1, 1, 1turn);
}
}
#app-mount+*,#app-mount+*+*, #app-mount+*+*+*, #app-mount+*+*+*+*, #app-mount+*+*+*+*+*, #app-mount+*+*+*+*+*+* {
display: block;
position: absolute;
font-size: 0;
pointer-events: none;
background: -moz-element(#app-mount);
inset: 0;
opacity: 0.7;
}
#app-mount+* {
transform: translateZ(calc(var(--cube-size)/2));
}
#app-mount+*+* {
transform: rotateY(-90deg) translateZ(calc(var(--cube-size)/2));
}
#app-mount+*+*+* {
transform: rotateY(90deg) translateZ(calc(var(--cube-size)/2));
}
#app-mount+*+*+*+* {
transform: translateZ(calc(var(--cube-size)/-2));
}
#app-mount+*+*+*+*+* {
transform: rotateX(90deg) translateZ(calc(var(--cube-size)/2));
}
#app-mount+*+*+*+*+*+* {
transform: rotateX(-90deg) translateZ(calc(var(--cube-size)/2));
}
.drag-previewer, .drag-announcer {
pointer-events: none;
}