-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
49 lines (48 loc) · 906 Bytes
/
style.css
File metadata and controls
49 lines (48 loc) · 906 Bytes
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
*:before, *:after {
content: '';
position: absolute;
}
.app {
width: fit-content;
height: 100%;
margin: auto;
border-radius: 1rem;
padding: 2rem;
background: rgba(0, 0, 0, 0.1);
}
.app, .row {
display: flex;
flex-wrap: wrap;
}
.clock {
width: 1.5rem;
height: 1.5rem;
background: lightgray;
border-radius: 50%;
position: relative;
}
.clock:before, .clock:after {
transform: translate(-50%) rotate(var(--angleFrom));
background: black;
left: 50%;
transform-origin: bottom center;
transition: 1s;
width: 0.1rem;
height: 50%;
border-radius: 5px;
animation: var(--time) changeColor linear var(--delay) infinite;
}
.clock:before {
transform: rotate(var(--bigAngle));
}
.clock:after {
transform: rotate(var(--smallAngle));
}
@keyframes changeColor {
from {
transform: rotate(var(--angleFrom));
}
to {
transform: rotate(var(--angleTo));
}
}