-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
84 lines (79 loc) · 1.98 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
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
#coin {
position: relative;
margin: 0 auto;
width: 100px;
height: 100px;
}
#coin div {
width: 100%;
height: 100%;
-webkit-border-radius: 50%;
-moz-border-radius: 50%;
border-radius: 50%;
-webkit-box-shadow: inset 0 0 45px rgba(255, 255, 255, 0.3),
0 12px 20px -10px rgba(0, 0, 0, 0.4);
-moz-box-shadow: inset 0 0 45px rgba(255, 255, 255, 0.3),
0 12px 20px -10px rgba(0, 0, 0, 0.4);
box-shadow: inset 0 0 45px rgba(255, 255, 255, 0.3),
0 12px 20px -10px rgba(0, 0, 0, 0.4);
}
.side-a {
background-color: #bb0000;
color: white;
text-align: center;
}
.side-b {
background-color: #3e3e3e;
color: white;
text-align: center;
}
#coin {
transition: -webkit-transform 1s ease-in;
-webkit-transform-style: preserve-3d;
}
#coin div {
position: absolute;
-webkit-backface-visibility: hidden;
}
.side-a {
z-index: 100;
}
.side-b {
-webkit-transform: rotateY(-180deg);
}
#coin.heads {
-webkit-animation: flipHeads 2s ease-out forwards;
-moz-animation: flipHeads 2s ease-out forwards;
-o-animation: flipHeads 2s ease-out forwards;
animation: flipHeads 2s ease-out forwards;
}
#coin.tails {
-webkit-animation: flipTails 2s ease-out forwards;
-moz-animation: flipTails 2s ease-out forwards;
-o-animation: flipTails 2s ease-out forwards;
animation: flipTails 2s ease-out forwards;
}
@-webkit-keyframes flipHeads {
from {
-webkit-transform: rotateY(0);
-moz-transform: rotateY(0);
transform: rotateY(0);
}
to {
-webkit-transform: rotateY(540deg);
-moz-transform: rotateY(540deg);
transform: rotateY(540deg);
}
}
@-webkit-keyframes flipTails {
from {
-webkit-transform: rotateY(0);
-moz-transform: rotateY(0);
transform: rotateY(0);
}
to {
-webkit-transform: rotateY(720deg);
-moz-transform: rotateY(720deg);
transform: rotateY(720deg);
}
}