-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
80 lines (67 loc) · 1.4 KB
/
styles.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
html,
body {
width: 100%;
height: 100%;
}
#player {
background: blue;
width: 100px;
height: 50px;
transition: 0.5s;
}
#board {
display: flex;
flex-wrap: wrap;
width: 50%;
height: 50%;
margin: 0 auto;
}
.square {
border: 1px solid black;
width: 33%;
height: 33%;
cursor: pointer;
background: yellow;
transition: 1s;
color: yellow;
position: relative;
}
.flip {
-moz-transform: rotateY(180deg);
-o-transform: rotateY(180deg);
-webkit-transform: rotateY(180deg);
transform: rotateY(180deg);
background: red;
color: #fff!important;
font-size: 50px;
text-shadow: 3px 4px 5px black;
}
.content {
position: absolute;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
}
.match{
-moz-transform: rotateY(180deg);
-o-transform: rotateY(180deg);
-webkit-transform: rotateY(180deg);
transform: rotateY(180deg);
background: green;
color: #fff!important;
font-size: 50px;
font-weight: 800;
text-shadow: 3px 4px 5px black;
}
@keyframes win-animation {
0% {background-color: chartreuse;}
25% {background-color: cadetblue;}
50% {background-color: chocolate;}
100% {background-color: aqua;}
}
/* The element to apply the animation to */
.win {
background-color: red;
animation-name: win-animation;
animation-duration: 4s;
}