-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
131 lines (125 loc) · 3.14 KB
/
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
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
body {
display: flex;
align-items: center;
justify-content: center;
height: 97vh;
background-color: #020202;
}
#clock__container {
position: relative;
margin: auto;
height: 40vw;
width: 40vw;
min-height: 271px;
min-width: 271px;
max-height: 521px;
max-width: 521px;
background: url(clock.png) no-repeat;
background-size: 100%;
border-radius: 50%;
transition: all 521ms ease;
}
#hour,
#minute,
#second {
position: absolute;
border-radius: 10px;
transform-origin: bottom;
height: 0;
transition: all 571ms ease-in-out;
border: 1px solid black;
}
.hour {
width: 1.8%;
height: 25% !important;
top: 25%;
left: 48.85%;
box-shadow: 0px 0px 2px 1px cyan;
background: cyan;
}
.minute {
width: 1.6%;
height: 30% !important;
top: 19%;
left: 48.9%;
box-shadow: 0px 0px 2px 1px white;
background: white;
}
.second {
width: 1%;
height: 40% !important;
top: 9%;
left: 49.25%;
box-shadow: 0px 0px 2px 1px tomato;
background: tomato;
}
#center {
background: white;
border: 1px solid black;
width: 3%;
height: 3%;
position: absolute;
top: 48.2%;
left: 48.2%;
border-radius: 50%;
}
#clock__container:hover {
animation: clock 4s infinite ease;
}
@keyframes clock {
0% {
box-shadow: inset 0px -15px 21px rgba(255, 255, 255, 0.2),
inset 0px 15px 21px rgba(255, 255, 255, 0.2), 0px -15px 111px indigo,
0px 15px 111px indigo;
}
10% {
box-shadow: inset 0px -15px 21px rgba(255, 255, 255, 0.2),
inset 0px 15px 21px rgba(255, 255, 255, 0.2), 0px -15px 71px purple,
0px 15px 71px purple;
}
20% {
box-shadow: inset 0px -15px 21px rgba(255, 255, 255, 0.2),
inset 0px 15px 21px rgba(255, 255, 255, 0.2), 0px -15px 91px red,
0px 15px 91px red;
}
30% {
box-shadow: inset 0px -15px 21px rgba(255, 255, 255, 0.2),
inset 0px 15px 21px rgba(255, 255, 255, 0.2), 0px -15px 51px orangered,
0px 15px 51px orangered;
}
40% {
box-shadow: inset 0px -15px 21px rgba(255, 255, 255, 0.2),
inset 0px 15px 21px rgba(255, 255, 255, 0.2), 0px -15px 71px orange,
0px 15px 71px orange;
}
50% {
box-shadow: inset 0px -15px 21px rgba(255, 255, 255, 0.2),
inset 0px 15px 21px rgba(255, 255, 255, 0.2), 0px -15px 111px yellow,
0px 15px 111px yellow;
}
60% {
box-shadow: inset 0px -15px 21px rgba(255, 255, 255, 0.2),
inset 0px 15px 21px rgba(255, 255, 255, 0.2), 0px -15px 51px orange,
0px 15px 51px orange;
}
70% {
box-shadow: inset 0px -15px 21px rgba(255, 255, 255, 0.2),
inset 0px 15px 21px rgba(255, 255, 255, 0.2), 0px -15px 71px orangered,
0px 15px 71px orangered;
}
80% {
box-shadow: inset 0px -15px 21px rgba(255, 255, 255, 0.2),
inset 0px 15px 21px rgba(255, 255, 255, 0.2), 0px -15px 51px red,
0px 15px 51px red;
}
90% {
box-shadow: inset 0px -15px 21px rgba(255, 255, 255, 0.2),
inset 0px 15px 21px rgba(255, 255, 255, 0.2), 0px -15px 71px purple,
0px 15px 71px purple;
}
100% {
box-shadow: inset 0px -15px 21px rgba(255, 255, 255, 0.2),
inset 0px 15px 21px rgba(255, 255, 255, 0.2), 0px -15px 91px indigo,
0px 15px 91px indigo;
}
}