-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.css
157 lines (140 loc) · 2.29 KB
/
index.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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
/* Animation properties */
.star {
animation: star 10s ease-out infinite;
}
.wars {
animation: wars 10s ease-out infinite;
}
.byline span {
animation: spin-letters 10s linear infinite;
}
.byline {
animation: move-byline 10s linear infinite;
}
/* Keyframes */
@keyframes star {
0% {
opacity: 0;
transform: scale(1.2) translateY(-0.75em);
}
20% {
opacity: 1;
}
89% {
opacity: 1;
transform: scale(1);
}
100% {
opacity: 0;
transform: translateZ(-1000em);
}
}
@keyframes wars {
0% {
opacity: 0;
transform: scale(1.2) translateY(0.5em);
}
20% {
opacity: 1;
}
90% {
opacity: 1;
transform: scale(1);
}
100% {
opacity: 0;
transform: translateZ(-1000em);
}
}
@keyframes spin-letters {
0%, 10% {
opacity: 0;
transform: rotateY(90deg);
}
30% {
opacity: 1;
}
70%, 86% {
transform: rotateY(0);
opacity: 1;
}
95%, 100% {
opacity: 0;
}
}
@keyframes move-byline {
0% {
transform: translateZ(5em);
}
100% {
transform: translateZ(0);
}
}
/* Make the 3D work on the container */
.starwars-demo {
perspective: 600px;
transform-style: preserve3d;
}
/* General styles and layout */
body {
background: #000 url("../assets/startPage/bg.jpeg");
background-size:cover;
display: flex;
flex-direction: column;
align-items: center;
height: 100vh;
}
.starwars-demo {
height: 17em;
left: 50%;
position: absolute;
top: 40%;
transform: translate(-50%, -70%);
width: 34em;
}
.byline span {
display: inline-block;
}
img {
width: 100%;
}
.star, .wars, .byline {
position: absolute;
}
.star {
top: -0.75em;
}
.wars {
bottom: -0.5em;
}
.byline {
color: #fff;
font-family: "ITC Serif Gothic", Lato;
font-size: 2.25em;
left: -2em;
letter-spacing: 0.4em;
right: -2em;
text-align: center;
text-transform: uppercase;
top: 29%;
}
.start-game {
border: 2px solid rgb(220,211,72);
color: rgb(220,211,72);
background-color: #000;
padding: 15px;
font-weight: 700;
font-size: 30px;
position: relative;
transform: translateY(800%);
border-radius: 10px;
}
.start-game:hover{
border: 2px solid yellow;
color: yellow;
background-color: rgb(27, 26, 26);
box-shadow: 0px 0px 17px 0px yellow;
}
* {
cursor:url(/assets/ships/cursor.cur), auto;
}