-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.css
75 lines (73 loc) · 1.08 KB
/
index.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
html,
body {
display: flex;
justify-content: center;
align-items: center;
margin: 0;
}
#clock {
border: 2px solid #666;
display: inline-block;
padding: 20px;
}
.number {
display: inline-table;
border-collapse: collapse;
}
.number:nth-child(2n) {
margin-right: 30px;
}
.circle {
display: inline-block;
width: 50px;
height: 50px;
border: 1px solid #bbb;
border-radius: 100%;
position: relative;
}
.circle.inactive .hand {
/*opacity: 0;*/
}
.hand {
position: absolute;
top: 0;
right: 0;
left: 0;
bottom: 0;
transition: all 1.5s ease-out;
opacity: 1;
}
.number:last-child .hand {
transition: all 0.3s ease-out;
}
.hand:after {
content: ' ';
border-bottom: 2px solid #666;
position: absolute;
width: 50%;
height: 48%;
}
.rot-0 {
transform: rotate(0deg);
}
.rot-45 {
transform: rotate(45deg);
}
.rot-90 {
transform: rotate(90deg);
}
.rot-135 {
transform: rotate(135deg);
}
.rot-180 {
transform: rotate(180deg);
}
.rot-225 {
transform: rotate(225deg);
}
.rot-270 {
transform: rotate(270deg);
}
.rot-315 {
transform: rotate(315deg);
}