-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
105 lines (94 loc) · 2.06 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: sans-serif;
min-height: 100vh;
background: #018DED url(https://unsplash.it/1500/1000?image=881&blur=5);
background-size: cover;
display: flex;
align-items: center;
justify-content: center;
}
main {
--border-width: 10px;
position: relative;
display: flex;
justify-content: center;
align-items: center;
width: 350px;
height: 350px;
font-family: Lato, sans-serif;
font-size: 2.5rem;
text-transform: uppercase;
color: white;
background: rgb(39, 141, 224);
border-radius: var(--border-width);
}
main:after {
position: absolute;
content: "";
top: calc(-1 * var(--border-width));
left: calc(-1 * var(--border-width));
z-index: -1;
width: calc(100% + var(--border-width) * 2);
height: calc(100% + var(--border-width) * 2);
background: linear-gradient(
60deg,
hsl(224, 85%, 66%),
hsl(269, 85%, 66%),
hsl(314, 85%, 66%),
hsl(359, 85%, 66%),
hsl(44, 85%, 66%),
hsl(89, 85%, 66%),
hsl(134, 85%, 66%),
hsl(179, 85%, 66%)
);
background-size: 350% 350%;
background-position: 0 50%;
border-radius: calc(2 * var(--border-width));
animation: moveGradient 5s alternate infinite;
}
@keyframes moveGradient {
50% {
background-position: 100% 50%;
}
}
.clock {
position: relative;
width: 100%;
height: 100%;
transform: translateY(-3px);
}
.hand {
height: 6px;
background: black;
position: absolute;
top: 50%;
transform-origin: 100%;
transform:rotate(90deg);
transition: all .05s;
transition-timing-function: cubic-bezier(0.23, 0.71, 0.79, 0.54);
}
.hour {
left: 20%;
width: 30%;
padding: .5rem;
}
.sec {
width: 50%;
background-color: red;
}
.min {
width: 50%;
background-color: rgb(255, 255, 255);
padding: .3rem;
}
:root {
--color-first : #65587f;
--color-second : #f18867;
--color-third : #e85f99;
--color-forth : #50bda1;
}