Repository navigation
Expand file tree
/
Copy pathstyles.css
More file actions
64 lines (57 loc) · 1.67 KB
/
Copy pathstyles.css
File metadata and controls
64 lines (57 loc) · 1.67 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
body {
font-family: Arial, sans-serif;
background-color: #f0f0f0;
text-align: center;
}
.container {
max-width: 600px;
margin: 0 auto;
padding: 20px;
background-color: #fff;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
border-radius: 10px;
}
h1 {
color: #333;
}
.cube {
perspective: 800px;
width: 200px;
height: 200px;
margin: 20px auto;
transform-style: preserve-3d;
animation: spin 10s infinite linear;
}
.cube-face {
position: absolute;
width: 200px;
height: 200px;
background: rgba(255, 255, 255, 0.9);
border: 1px solid #ddd;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
display: flex;
justify-content: center;
align-items: center;
font-size: 24px;
backface-visibility: hidden;
}
.front { transform: rotateY(0deg) translateZ(100px); background-color: #ff6347; } /* Red */
.back { transform: rotateY(180deg) translateZ(100px); background-color: #0000cd; } /* Blue */
.top { transform: rotateX(90deg) translateZ(100px); background-color: #ffff00; } /* Yellow */
.bottom { transform: rotateX(-90deg) translateZ(100px); background-color: #008000; } /* Green */
.left { transform: rotateY(-90deg) translateZ(100px); background-color: #ff4500; } /* Orange */
.right { transform: rotateY(90deg) translateZ(100px); background-color: #ffffff; } /* White */
button {
background-color: #007bff;
color: #fff;
border: none;
padding: 10px 20px;
font-size: 18px;
cursor: pointer;
border-radius: 5px;
margin-top: 20px;
}
@keyframes spin {
0% { transform: rotateY(0deg); }
100% { transform: rotateY(360deg); }
}