-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
44 lines (40 loc) · 1000 Bytes
/
Copy pathindex.css
File metadata and controls
44 lines (40 loc) · 1000 Bytes
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
body {
margin: 0;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
background: #111;
color: #fff;
font-family: 'Courier New', monospace;
}
.doom-container {
position: relative;
width: 400px;
height: 200px;
perspective: 800px;
}
.doom-box {
position: absolute;
width: 100%;
height: 100%;
background: #222;
box-shadow: inset 0 0 30px 5px #000;
transform-style: preserve-3d;
animation: rotateDoom 10s infinite linear;
}
.doom-wall {
position: absolute;
width: 100%;
height: 100%;
background: linear-gradient(to bottom, #444 0%, #222 100%);
}
@keyframes rotateDoom {
0% {
transform: rotateX(0) rotateY(0) rotateZ(0);
}
100% {
transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
}
}