-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
59 lines (52 loc) · 1.07 KB
/
style.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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
#flip-card-game {
margin: auto;
width:700px;
height: 700px;
}
#flip-card-game .container {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
padding: 10px;
width: 100%;
height: fit-content;
background-color: rgb(121, 121, 255);
}
#flip-card-game .container>div {
position: relative;
margin: 5px;
border-radius: 20px;
width: 150px;
height: 200px;
transition: transform 1s;
transform-style: preserve-3d;
}
#flip-card-game .container>div:hover {
cursor: pointer;
}
#flip-card-game .container>div .front-face {
position: absolute;
top: 0;
width: 100%;
height: 100%;
backface-visibility: hidden;
-moz-backface-visibility: hidden;
-webkit-backface-visibility: hidden;
transform: rotateY(180deg);
}
#flip-card-game .container>div .backFace {
position: absolute;
top: 0;
width: 100%;
height: 100%;
}
#flip-card-game .container>div img {
border-radius: 20px;
width: 100%;
height: 200px;
}