-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclock.css
More file actions
150 lines (132 loc) · 2.79 KB
/
clock.css
File metadata and controls
150 lines (132 loc) · 2.79 KB
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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
body {
background: #fff;
}
.wrapper {
margin-left: auto;
margin-right: auto;
margin-top: 20%;
width: 250px;
height: 250px;
position: relative;
background: #fff;
}
.wrapper .fill-block {
z-index: 400;
width: 50%;
height: 50%;
margin: 25% 0 0 25%;
border-radius: 100%;
position: absolute;
background: #fff;
border: 1px solid black;
}
.wrapper .out-block {
z-index: 400;
content: " ";
position: absolute;
background: transparent;
width: 100%;
height: 100%;
border-radius: 200px;
border: 1px solid black;
}
.wrapper .line {
position: absolute;
left: 50%;
top: 50%;
height: 0;
widtha: 0;
border-top: 2px solid black;
}
.wrapper .time {
font-family: 'Arial';
font-weight: bolder;
font-size: 32px;
cursor: pointer;
z-index: 500;
width: 50%;
height: 50%;
position: absolute;
text-align: center;
vertical-align: middle;
line-height: 125px;
top: 25%;
left: 25%;
-webkit-user-select: none;
}
.wrapper .static-inset {
z-index: 200;
position: absolute;
left: 125px;
width: 0;
height: 0;
border-top: 32px solid transparent;
border-bottom: 31px solid transparent;
border-left: 15px solid #fff;
-webkit-animation: inset linear 1;
-webkit-animation-play-state: paused;
}
.wrapper .pie {
width: 50%;
height: 100%;
transform-origin: 100% 50%;
position: absolute;
background: #08c;
}
.wrapper .spinner {
border-radius: 100% 0 0 100% / 50% 0 0 50%;
z-index: 200;
border-right: none;
-webkit-animation: rota 10s linear 1;
-webkit-animation-play-state: paused;
}
.wrapper .spinner:after {
content: " ";
position: relative;
height: 0;
width: 0;
left: 125px;
border-top: 32px solid transparent;
border-left: 15px solid #08c;
border-bottom: 32px solid transparent;
border-right: 0;
display: block;
}
.wrapper .filler {
border-radius: 0 100% 100% 0 / 0 50% 50% 0;
left: 50%;
opacity 0;
z-index: 100;
-webkit-animation: opa 10s steps(1, end) 1 reverse;
-webkit-animation-play-state: paused;
border-left: none;
}
.wrapper .mask {
width: 50%;
height: 100%;
position: absolute;
background: inherit;
opacity: 1;
z-index: 200;
-webkit-animation: opa 10s steps(1, end) 1;
-webkit-animation-play-state: paused;
}
.wrapper, .wrapper * {
box-sizing: border-box;
}
@-webkit-keyframes rota {
0% {transform: rotate(0deg);}
100% {transform: rotate(360deg);}
}
@-webkit-keyframes color-shift {
0% {background: #08c;}
100% {background: red;}
}
@-webkit-keyframes inset {
0% {z-index: 400;}
100% {z-index: 100;}
}
@-webkit-keyframes opa {
0% {opacity: 1;}
50%, 100% {opacity: 0;}
}