-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
49 lines (44 loc) · 918 Bytes
/
style.css
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
body{
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
background: linear-gradient(to right, #2980b9, #6dd5fa, #ffffff);
}
#clockContainer{
position: relative;
width: 300px;
height: 300px;
border: 10px solid #fff;
border-radius: 50%;
}
.hand{
position: absolute;
left: 50%;
bottom: 50%;
transform-origin: 50% 100%;
transform: translateX(-50%) translateY(100%) rotate(0deg);
transition: transform 0.5s cubic-bezier(0.4, 2.5, 0.4, 0.5);
border-radius: 5px;
}
#hourHand{
width: 8px;
height: 60px;
background-color: #333;
margin-top: -60px;
border-radius: 5px;
}
#minuteHand{
width: 6px;
height: 100px;
background-color: #555;
margin-top: -100px;
border-radius: 5px;
}
#secondHand{
width: 2px;
height: 120px;
background-color: #ff0000;
margin-top: -120px;
}