-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclock.css
48 lines (45 loc) · 882 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
#clock {
margin: auto;
height: 50vh;
width: 50vh;
border: 1vh solid cornflowerblue;
border-radius: 50%;
background-image: url('clockface.png');
background-size: 90%;
background-position: center;
background-repeat: no-repeat;
}
#hs {
height: 20%;
width: .5vh;
background-color: black;
position: relative;
top: 30%;
left: calc(50% - .5vh);
z-index: 1;
transform-origin: bottom;
transition-duration: 1s;
transition-timing-function: linear;
}
#mins {
height: 40%;
width: .5vh;
background-color: black;
position: relative;
top: -10%;
left: calc(50% - .5vh);
z-index: 2;
transform-origin: bottom;
transition-duration: 1s;
transition-timing-function: linear;
}
#secs {
height: 45%;
width: .2vh;
background-color: red;
position: relative;
top: -55%;
left: calc(50% - .5vh);
z-index: 0;
transform-origin: bottom;
}