-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
62 lines (56 loc) · 1 KB
/
Copy pathstyle.css
File metadata and controls
62 lines (56 loc) · 1 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
*{
box-sizing: border-box;
font-family: sans-serif;
margin: 0;
}
.clock{
width: 500px;
height: 500px;
border-radius: 50%;
margin: 50px auto 0;
position: relative;
border: 5px solid black;
}
.num{
position: absolute;
width: 100%;
height: 100%;
text-align: center;
font-size: 25px;
}
.point{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
border-radius: 50%;
width: 15px;
height: 15px;
background-color: black;
}
.hand{
position: absolute;
top: 50%;
border-radius: 5px;
background-color: black;
transition: all 0.3s;
}
.hand.hour{
width: 35%;
left: 32%;
height: 7px;
transform: rotate(90deg) translate(-50%, -50%);
}
.hand.min {
width: 42%;
left: 28.5%;
height: 5px;
transform: rotate(90deg) translate(-50%, -50%);
}
.hand.sec {
background-color: red;
width: 47%;
left: 27%;
height: 3px;
transform: rotate(90deg) translate(-50%, -50%);
}