-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclock.css
66 lines (65 loc) · 1.46 KB
/
clock.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
@import url('https://fonts.googleapis.com/css2?family=GFS+Didot&display=swap');
*{
margin: 0;
padding: 0;
/* font-family: 'Poppins', sans-serif; */
font-family: Didot;
}
html,body{
display: grid;
height: 100%;
place-items: center;
background: black;
}
.wrapper{
height: 100px;
width: 360px;
position: relative;
background: linear-gradient(120deg, #12fc02, #fffb01, #fd01dc);
border-radius: 10px;
cursor: default;
animation: animate 1.5s linear infinite;
}
.wrapper .display,
.wrapper span{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.wrapper .display{
z-index: 999;
height: 85px;
width: 345px;
background: black;
border-radius: 6px;
text-align: center;
}
.display #time{
line-height: 85px;
/* color: #fff; */
font-size: 50px;
font-weight: 600;
letter-spacing: 1px;
background: linear-gradient(120deg, #ff1414, #ffeb3b, #ea00ff);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
animation: animate 1.5s linear infinite;
}
@keyframes animate {
100%{
filter: hue-rotate(360deg);
}
}
.wrapper span{
height: 100%;
width: 100%;
border-radius: 10px;
background: inherit;
}
.wrapper span:first-child{
filter: blur(7px);
}
.wrapper span:last-child{
filter: blur(20px);
}