-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclock.css
74 lines (61 loc) · 990 Bytes
/
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
body {
background-color: coral;
}
.clock {
width: 200px;
height: 200px;
background-color: white;
border-radius: 50px;
position: relative;
}
.main {
position: absolute;
width: 3px;
height: 40px;
background-color: black;
bottom: 99px;
left: 99px;
transform-origin: 50% 100%;
}
.minute {
height: 75px;
background-color: green;
}
.second {
height: 90px;
background-color: orange;
}
.time {
color:red;
transition: all 0.05s;
transition-timing-function: cubic-bezier(0.1, 2.7, 0.58, 1);
}
.clock ul{
list-style: none;
padding: 0;
}
.clock ul li{
position: absolute;
width:20px;
height:20px;
text-align: center;
line-height: 20px;
font-size: 20px;
color:red;
}
.clock ul li:nth-child(1){
left: 45%;
top:4%;
}
.clock ul li:nth-child(2){
left: 90%;
bottom:45%;
}
.clock ul li:nth-child(3){
right: 45%;
bottom:4%;
}
.clock ul li:nth-child(4){
right: 90%;
bottom:45%;
}