-
Notifications
You must be signed in to change notification settings - Fork 354
Expand file tree
/
Copy pathstyle.css
More file actions
77 lines (69 loc) · 1.38 KB
/
style.css
File metadata and controls
77 lines (69 loc) · 1.38 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body::before {
content: '';
position: absolute;
z-index: -1;
height: 100vh;
width: 100%;
background: linear-gradient(to bottom right, blue, cyan, purple);
transform: rotate(18deg);
}
body {
background: linear-gradient(to top left, orange, yellow, pink, purple, red);
overflow: hidden;
height: 100vh;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.clock {
height: 300px;
width: 300px;
border: 10px solid #fff;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
position: relative;
}
.centerPoint {
height: 6px;
width: 6px;
border-radius: 50%;
z-index: 4;
background: #fff;
}
.hourHand,
.minuteHand,
.secondHand {
position: absolute;
height: 60px;
width: 1.5px;
background: #fff;
border-radius: 20%;
transition: 0.03s;
transition-timing-function: cubic-bezie(r0.175, 0.885, 0.32, 2.275);
}
.hourHand {
background: #000;
width: 3.5px;
transform: rotate(15deg) translateY(-50%);
z-index: 1;
}
.minuteHand {
height: 80px;
background: red;
width: 2.5px;
transform: rotate(55deg) translateY(-50%);
z-index: 2;
}
.secondHand {
transform: rotate(165deg) translateY(-30%);
z-index: 3;
height: 100px;
}