-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
executable file
·71 lines (64 loc) · 1.34 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
body {
background-color: black;
}
.digi-clock {
font-family: 'Orbitron', sans-serif;
font-size: 5em;
text-align: center;
color: rgba(0, 0, 0, 0);
animation-name: blur;
animation-duration: 5s;
animation-iteration-count: infinite;
animation-direction: alternate;
margin: 0.5em 0 1.5em 0;
}
@keyframes blur {
from { text-shadow: 10px 2px 5px white;
}
to { text-shadow: 10px 2px 8px white;
}
}
.clock-container {
width: 20rem;
height: 20rem;
border-radius:50%;
margin:50px auto;
position: relative;
padding:2rem;
animation-name: blur-box;
animation-duration: 10s;
animation-iteration-count: infinite;
animation-direction: alternate;
}
.clock-face {
position: relative;
width: 100%;
height: 100%;
transform: translateY(-3px);
}
.hand {
width: 50%;
height: 6px;
position: absolute;
top: 50%;
transform-origin: 100%;
transform: rotate(90deg);
transition: all 0.02;
transition-timing-function: cubic-bezier(0, 2.32, 0.2, 1.35);
animation-name: blur-text;
animation-duration: 10s;
animation-iteration-count: infinite;
animation-direction: alternate;
}
@keyframes blur-box {
from { box-shadow: 0em 0em -5em white;
}
to { box-shadow: 0em 0em 5em 5em white;
}
}
@keyframes blur-text {
from { box-shadow: inset 0 0 0.1em black;
}
to { box-shadow: inset 0 0 1em 0.1em white;
}
}