-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
85 lines (74 loc) · 1.51 KB
/
style.css
File metadata and controls
85 lines (74 loc) · 1.51 KB
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
body {
margin: 0;
overflow: hidden;
background-color: #f0f0f0;
font-family: Arial, sans-serif;
}
#scene-container {
width: 100%;
height: 100vh;
perspective: 1000px;
}
.shape {
position: absolute;
transform-style: preserve-3d;
transition: transform 0.5s ease;
}
.cube {
width: 100px;
height: 100px;
transform-style: preserve-3d;
}
.face {
position: absolute;
width: 100%;
height: 100%;
opacity: 0.8;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
color: white;
text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.front { transform: translateZ(50px); }
.back { transform: rotateY(180deg) translateZ(50px); }
.right { transform: rotateY(90deg) translateZ(50px); }
.left { transform: rotateY(-90deg) translateZ(50px); }
.top { transform: rotateX(90deg) translateZ(50px); }
.bottom { transform: rotateX(-90deg) translateZ(50px); }
.sphere {
border-radius: 50%;
background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.8), rgba(0,0,0,0.5));
}
.pyramid {
transform-style: preserve-3d;
}
.pyramid-face {
position: absolute;
width: 0;
height: 0;
opacity: 0.8;
}
.controls {
position: absolute;
bottom: 20px;
left: 20px;
z-index: 100;
background: rgba(255,255,255,0.8);
padding: 10px;
border-radius: 5px;
}
button {
padding: 8px 12px;
margin: 0 5px;
cursor: pointer;
background: #4285f4;
color: white;
border: none;
border-radius: 4px;
}
button:hover {
background: #3275e4;
}