-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgame.css
More file actions
108 lines (93 loc) · 1.58 KB
/
Copy pathgame.css
File metadata and controls
108 lines (93 loc) · 1.58 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
body {
background-color: #a69cac;
}
.arrow {
color: white;
text-shadow: 0px 0px 5px rgb(248, 248, 248);
}
#time {
text-align: center;
font-family: "Orbitron", sans-serif;
}
#timer {
margin: 0 auto;
text-align: center;
font-size: 3.5em;
font-family: "Orbitron", sans-serif;
}
.playground {
width: 40em;
height: 40em;
margin: 5em auto;
display: grid;
grid-template-columns: auto auto auto auto;
grid-gap: 1em;
perspective: 100px;
}
.item {
width: 85%;
height: 85%;
position: relative;
display: flex;
justify-content: center;
align-items: center;
/* https://www.w3schools.com/css/css3_3dtransforms.asp next three lines*/
transform-style: preserve-3d;
transition: transform 0.2s;
transform-origin: center;
}
.item.flip {
transform: rotateY(180deg);
}
.front,
.back {
width: 100%;
height: 100%;
padding: 10px;
border-radius: 8%;
position: absolute;
}
.front {
transform: rotateY(0deg);
}
.back {
backface-visibility: hidden;
transform: rotateY(180deg);
}
.front {
background-color: #161b33;
display: flex;
justify-content: center;
align-items: center;
}
.back {
background-color: #161b33;
}
.icon1,
.icon2,
.icon3,
.icon4,
.icon5,
.icon6,
.icon7,
.icon8 {
animation: bounce 1.1s infinite;
text-shadow: 0px 0px 5px rgb(247, 243, 246);
color: rgb(243, 236, 242);
display: flex;
/* justify-content: center; */
/* align-items: center; */
margin-left: 1em;
margin-top: 0.7em;
}
@keyframes bounce {
0% {
transform: scale(1);
}
50% {
transform: scale(1.2);
}
100% {
transform: scale(1);
}
}