-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
83 lines (81 loc) · 1.37 KB
/
Copy pathstyle.css
File metadata and controls
83 lines (81 loc) · 1.37 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
.container{
width: 100%;
height: 100vh;
background: #fafafa;
}
.clock-face {
height: 20em;
width: 20em;
border-radius: 50%;
border: 1px solid black;
margin: auto;
position: relative;
top: 25%;
}
.clock-face:after {
background: #000;
border-radius: 50%;
content: "";
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 13px;
height: 13px;
z-index: 10;
}
.minute-container, .hour-container, .seconds-container {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
transform: rotate(-90deg);
}
.minute {
width: 35%;
height: 4px;
background-color: black;
position: absolute;
top: calc(50% - 2px);
left: calc(50% + 0px);
transform-origin: 0% 50%;
}
.hour{
width: 25%;
height: 4px;
background-color: black;
position: absolute;
top: calc(50% - 2px);
left: calc(50% + 0px);
transform-origin: 0% 50%;
}
.seconds{
width: 55%;
height: 2px;
background-color: red;
position: absolute;
top: calc(50% - 2px);
left: 40%;
transform-origin: 18.5% 90%;
z-index: 10;
}
@keyframes rotate {
100% {
transform: rotateZ(360deg);
}
}
.seconds-container{
animation: rotate 60s infinite steps(60);
}
.minute-container{
animation: rotate 3600s infinite steps(60);
}
.hour-container{
animation: rotate 43200s infinite linear;
}