-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclock.css
More file actions
92 lines (79 loc) · 1.89 KB
/
clock.css
File metadata and controls
92 lines (79 loc) · 1.89 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
84
85
86
87
88
89
90
91
92
*{
margin-top: 15px;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body{
display: flex;
justify-content: center;
align-items: centre;
height: 50vh;
background: radial-gradient(circle, #0b456b, #021c37);
}
.clock{
width: 540px;
height: 540px;
position: relative;
background-color: lightgray;
border-radius: 80%;
display: flex;
justify-content: center;
align-items: center;
background: radial-gradient(circle, #05263c, #000d1a);
}
.clock::before{
content: "";
width: 1000px;
height: 560px;
position: relative;
border-radius: 50%;
background: linear-gradient(to right, #00d9ff, #ee00ff);
box-shadow: 0 0 15px 15px rgba(0, 0, 0, 0.2);
z-index: -1;
}
.number{
transform: rotate(calc(30deg * var(--n)));
position: absolute;
text-align: center;
inset: 20px;
font-size: 40px;
color: #00d9ff;
text-shadow: 0 0 12px #ee00ff;
}
.number b{
transform: rotate(calc(-30deg * var(--n)));
display: inline-block;
}
.center-dot{
position: absolute;
width: 25px;
height: 25px;
background-color: #ee00ff;
border: 6px solid #00d9ff;
border-radius: 50%;
}
.hour-hand, .minute-hand, .second-hand {
--rotate: 0;
position: absolute;
left: 50%;
bottom: 50%;
transform: translate(-50%) rotate(calc(var(--rotate)* 1deg));
transform-origin: bottom;
border-radius: 30px 30px 0 0;
}
.hour-hand{
width: 12px;
height: 110px;
background: linear-gradient(#00d9ff, #ee00ff);
}
.minute-hand{
width: 12px;
height: 180px;
background: linear-gradient(to top, #00d9ff, #ee00ff);
}
.second-hand{
width: 6px;
height: 210px;
background: linear-gradient(to top, #00d9ff, #ee00ff);
}