-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsquidgame.css
94 lines (86 loc) · 1.9 KB
/
squidgame.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
* {
padding: 0;
margin: 0;
}
body {
width: 100vw;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background-color: #000000;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='186' height='186' viewBox='0 0 120 120'%3E%3Cpolygon fill='%23434343' fill-opacity='0.12' points='120 0 120 60 90 30 60 0 0 0 0 0 60 60 0 120 60 120 90 90 120 60 120 0'/%3E%3C/svg%3E");
}
.card-outer:hover .card {
transform: rotateY(180deg);
}
.card-outer:hover .card .card-front {
visibility: visible;
opacity: 0;
}
.card-outer:hover .card .card-back {
visibility: visible;
opacity: 1;
}
.card {
perspective: 1000px;
width: 500px;
height: 280px;
border-radius: 10px;
padding: 16px;
display: flex;
align-items: center;
justify-content: center;
background-color: #704b00;
background-image: url("https://cdn.discordapp.com/attachments/482233537026719746/896844303446462486/cardboard.png");
transition: transform 0.7s;
transform-style: preserve-3d;
}
.card-front {
position: absolute;
width: 100%;
height: 100%;
-webkit-backface-visibility: hidden;
/* Safari */
backface-visibility: hidden;
transition: visibility 0s, opacity 0.5s ease-in;
}
.card-back {
position: absolute;
width: 100%;
height: 100%;
visibility: hidden;
opacity: 0;
transition: visibility 0s, opacity 0.5s ease-in;
}
.card-inner {
position: relative;
width: 100%;
height: 100%;
text-align: center;
}
.card-front {
display: flex;
align-items: center;
justify-content: center;
height: 100%;
}
.card-front .circle {
border: 12px solid #000;
width: 75px;
height: 75px;
border-radius: 999px;
}
.card-front .square {
border: 12px solid #000;
width: 75px;
height: 75px;
}
.card-back {
display: flex;
align-items: center;
justify-content: center;
color: #000000;
transform: rotateY(180deg);
visibility: hidden;
}