-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.css
52 lines (42 loc) · 773 Bytes
/
app.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
/*
CARD FLIP ANIMATIONS ADAPTED FROM DAVID WALSH BLOG:
https://davidwalsh.name/css-flip
*/
#game .flip-container {
perspective: 1000px;
width: 15%;
height: 200px;
margin: 10px;
display: inline-block;
}
.flip-container .flipper {
width: 100%;
height: 100%;
display: inline-block;
}
.flipper .front, .back {
border: 1px solid black;
width: 100%;
height: 100%;
margin: 0;
display: inline-block;
backface-visibility: hidden;
position: absolute;
top: 0;
left: 0;
}
.flipper {
transition: .6s;
transform-style: preserve-3d;
position: relative;
}
.front {
z-index: 2;
}
.back {
transform: rotateY(180deg);
}
.back img {
height: 100%;
width: 100%;
}