index.less
1.23 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
@fontSize: 30px;
@color: #1890FF;
.clock {
width: @fontSize;
height: @fontSize;
border-radius: 50%;
border: 3px solid @color;
box-sizing: border-box;
position: absolute;
display: flex;
align-items: center;
justify-content: center;
transform: scale(0.7);
}
.clock::after {
content: "";
width: 4px;
height: 4px;
border-radius: 50%;
background-color: @color;
}
.hand::before {
content: "";
width: 2px;
height: 7px;
border-radius: 15px;
position: absolute;
top: 50%;
left: 42%;
background-color: @color;
transform-origin: top;
border: 2px solid @color;
box-sizing: border-box;
// animation: tide 40s linear infinite;
}
.hand::after {
content: "";
width: 2px;
height: 11px;
border-radius: 15px;
position: absolute;
top: 50%;
left: 42%;
background-color: @color;
transform-origin: top;
border: 2px solid @color;
box-sizing: border-box;
// animation: tide 5s linear infinite;
}
.move::before {
animation: tide 40s linear infinite;
}
.move::after {
animation: tide 5s linear infinite;
}
@keyframes tide {
to {
transform: rotateZ(360deg);
}
}
.rotate {
width: 1px;
height: 15px;
background: #fff;
margin-bottom: 10px;
animation: tide 1s linear infinite;
}