-
Notifications
You must be signed in to change notification settings - Fork 0
/
flip-clock.css
120 lines (103 loc) · 1.98 KB
/
flip-clock.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
.flip-clock {
display: inline-block;
margin-right: 5px;
height: 165px;
min-width: 86px;
perspective: 240px;
perspective-origin: 50% 50%;
}
.flip-clock div{
position: absolute;
color: white;
background: black;
min-width: 86px;
height: 50px;
font-size: 60px;
text-align: center;
margin: 6px;
line-height: 100px;
overflow: hidden;
-moz-box-shadow: 3px 3px 3px #111;
-webkit-box-shadow: 3px 3px 3px #111;
box-shadow: 3px 3px 3px #111;
}
.flip-top {
border-radius: 9px 9px 0px 0px;
top: 0px;
}
.flip-bottom {
border-radius: 0px 0px 9px 9px;
top: 50px;
border-top: 1px solid transparent;
}
.flip-bottom span{
display: block;
margin-top: -50px;
}
.flip-front {
z-index: 999;
}
.flip-back {
z-index: 998
}
.flip-top.flip-front{
transform-origin: 50% 100%;
}
.flip-bottom.flip-front{
transform-origin: 50% 0%;
}
.flip-top-animate {
animation-name: fliptop;
animation-timing-function: ease-in;
animation-duration: 0.4s;
}
.flip-bottom-animate {
animation-name: flipbottom;
animation-timing-function: ease-out;
animation-duration: 0.4s;
}
@keyframes fliptop {
0% {
transform: rotateX(0deg);
}
100% {
transform: rotateX(-90deg);
}
}
@keyframes flipbottom {
0% {
transform: rotateX(90deg);
}
100% {
transform: rotateX(0deg);
}
}
/* Start of Flip Clock small CSS */
.flip-clock.flipclock-small {
position: absolute;
bottom: 0;
margin-right: 0px;
height: 60px;
min-width: 43px;
}
.flip-clock.flipclock-small div{
min-width: 177px;
height: 25px;
font-size: 35px;
font-weight: bold;
margin: 6px;
line-height: 50px;
}
.flipclock-small .flip-top {
border-radius: 9px 9px 0px 0px;
top: 0px;
}
.flipclock-small .flip-bottom {
border-radius: 0px 0px 9px 9px;
top: 25px;
}
.flipclock-small .flip-bottom span{
display: block;
margin-top: -25px;
}
/* End of Flip Clock small CSS */