-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtile_game.css
63 lines (56 loc) · 1.04 KB
/
tile_game.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
body{
text-align: center;
}
body img{
text-align: center;
}
body div{
text-align: center;
}
span{
font-size: 2em;
color: #FF0000;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}
span#comment{
color: #4CAF50;
display: none;
}
.card {
position: relative;
float: left;
height: 150px;
width: 150px;
margin: 0px;
}
.card__front,
.card__back {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
.card__front,
.card__back {
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
-webkit-transition: -webkit-transform 0.3s;
transition: transform 0.3s;
}
.card__front {
background-color: #ff5078;
}
.card__back {
background-color: #FFFFFF;
-webkit-transform: rotateX(-180deg);
transform: rotateX(-180deg);
}
.card.effect__click.flipped .card__front {
-webkit-transform: rotateX(-180deg);
transform: rotateX(-180deg);
}
.card.effect__click.flipped .card__back {
-webkit-transform: rotateY(0);
transform: rotateY(0);
}