-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscreen.css
128 lines (116 loc) · 2.59 KB
/
screen.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
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
@media only screen and (min-width:651px) and (min-height:651px) {
.screen-centered
{
position: absolute;
top: 50%;
left: 50%;
width: 100px;
height: 100px;
margin-left: -50px;
margin-top: -20px;
}
@keyframes rotate-cube {
from { transform: translateZ(-1000px) rotateZ(0deg) rotateY(0deg);}
to{ transform: translateZ(-1000px) rotateZ(1080deg) rotateY(360deg);}
}
.stage {
perspective: 700px;
transform-style: preserve-3d;
position: absolute;
}
#cube {
position: relative;
width: 600px;
height: 600px;
top: 50%;
left: 50%;
margin-top: -300px;
margin-left: -300px;
transform-style: preserve-3d;
transition: all 700ms;
transform: translateZ(-300px);
}
#cube {
animation: rotate-cube 15s linear infinite;
animation-delay: 2s;
}
#cube:hover, .playing #cube {
animation: none;
}
section {
position: absolute;
top: 15px;
left: 15px;
height: 600px;
width: 600px;
margin: 0;
padding-bottom: 0;
border-radius: 0;
box-shadow: none;
}
aside {
position: fixed;
bottom: 1em;
right: 1em;
box-shadow: 3px 5px 5px rgba(0,0,0,0.25);
border: none;
z-index: -1;
}
p {
margin: 1em 3em;
}
#cube.rotate-intro { transform: translateZ(-300px) rotateY(0deg); }
#cube.rotate-about1 { transform: translateZ(-300px) rotateY(-90deg); }
#cube.rotate-about2 { transform: translateZ(-300px) rotateY(-180deg); }
#cube.rotate-about3 { transform: translateZ(-300px) rotateY(-270deg); }
#cube.rotate-setup { transform: translateZ(-300px) rotateX(90deg); }
#cube.rotate-game { transform: translateZ(-300px) rotateX(-90deg); }
#intro { transform: translateZ(300px); }
#about1 { transform: translateX(300px) rotateY(90deg); }
#about2 { transform: translateZ(-300px) rotateY(180deg); }
#about3 { transform: translateX(-300px) rotateY(-90deg); }
#setup { transform: translateY(300px) rotateX(-90deg); }
#game { transform: translateY(-300px) rotateX(90deg); }
#play { transform: translateY(250px) rotateX(90deg); }
.up, .down, .left, .right {
position: absolute;
}
.up, .down {
width: 50%;
left: 25%;
}
.left, .right {
top: 25%;
width: 29px;
height: 300px;
word-wrap: break-word;
white-space: normal;
letter-spacing: 10px;
box-sizing: border-box;
padding: 5em 10px;
}
.left:before, .right:before {
margin-left: -5px;
}
.up { top: 5px; }
.down { bottom: 5px; }
.right { right: 5px; }
.left { left: 5px; }
#play {
opacity: 0;
}
.playing #game {
opacity: 0;
transform: translateY(250px) rotateX(90deg);
}
.playing #play {
transform: translateY(-290px) rotateX(90deg);
opacity: 1;
}
#playbutton {
opacity: 1;
}
.playing #playbutton {
opacity: 0;
}
}