-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
95 lines (78 loc) · 1.53 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
*{margin: 0; padding: 0; overflow: hidden;}
#image {
position: relative;
width: 400vw;
height: 100vh;
overflow: hidden;
animation: moveBackground 25s linear infinite;
}
.background {
position: absolute;
top: 0;
width: 100vw;
height: 100vh;
background-repeat: no-repeat;
background-size: cover;
}
.background:nth-child(1) {
background-image: url('game_img/game_background1.png');
left: 0;
z-index: 5;
}
.background:nth-child(2) {
background-image: url('game_img/game_background2.png');
left: 100vw;
z-index: 4;
}
.background:nth-child(3) {
background-image: url('game_img/game_background3.png');
left: 200vw;
z-index: 3;
}
.background:nth-child(4) {
background-image: url('game_img/game_background1.png');
left: 300vw;
z-index: 2;
}
.title{
position: fixed;
width: 60vw;
height: 20vh;
top: 35%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 7;
}
@keyframes moveBackground {
0% {
transform: translateX(0);
}
100% {
transform: translateX(-300vw);
}
}
button {
border: none;
background-color: transparent;
}
#play {
position: absolute;
top: 60vh;
left: 50vw;
transform: translate(-50%, -50%);
}
#characters {
position: absolute;
top: 74vh;
left: 50vw;
transform: translate(-50%, -50%);
}
#exit {
position: absolute;
top: 88vh;
left: 50vw;
transform: translate(-50%, -50%);
}
.button_img {
width: 22vw;
}