-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
65 lines (61 loc) · 1.22 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
@property --gradient-angle {
syntax: "<angle>";
initial-value: 0deg;
inherits: false;
}
@keyframes rotation {
0% {
--gradient-angle: 0deg;
}
100% {
--gradient-angle: 360deg;
}
}
:root {
--clr-1: #000;
--clr-2: #193512;
--clr-3: #6c6eff;
--clr-4: #ff8787;
--clr-5: #89f0b1;
}
body {
background: var(--clr-1);
min-height: 100vh;
display: grid;
place-content: center;
}
.card {
height: 60vh;
aspect-ratio: 1 / 1.5;
background: var(--clr-1);
border-radius: 0.5em;
position: relative;
}
.card::before,
.card::after {
content: "";
position: absolute;
inset: -0.3rem;
z-index: -1;
background: conic-gradient(
from var(--gradient-angle),
var(--clr-2),
var(--clr-4),
var(--clr-5),
var(--clr-3),
var(--clr-2)
);
border-radius: inherit;
animation: rotation 5s linear infinite;
}
.card::after {
-webkit-filter: blur(3.5em);
filter: blur(3.5em);
}
.text {
color: white;
text-align: center;
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
sans-serif;
}