-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
46 lines (40 loc) · 754 Bytes
/
Copy pathstyles.css
File metadata and controls
46 lines (40 loc) · 754 Bytes
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
.clock {
width: 200px;
height: 200px;
border: 5px solid black;
border-radius: 50%;
position: relative;
}
/* MARKERS */
.mark {
position: absolute;
top: 0;
left: 50%;
transform-origin: center 100px;
background: black;
}
/* Minute ticks */
.mark {
width: 1px;
height: 6px;
opacity: 0.6;
}
/* Hour ticks (every 5th) */
.mark.hour-mark {
height: 12px;
width: 2px;
opacity: 1;
}
.hand {
position: absolute;
bottom: 50%;
left: 50%;
transform-origin: bottom center;
}
.hour { height: 50px; width: 4px; background: black; }
.minute { height: 70px; width: 3px; background: black; }
.second { height: 90px; width: 2px; background: red; }
.hour, .minute {
transform-origin: bottom center;
will-change: transform;
}