-
Notifications
You must be signed in to change notification settings - Fork 1
/
styles.css
102 lines (86 loc) · 2.13 KB
/
styles.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
:root {
font-size: 15px;
--lighting-size: 300px;
--lighting-color: #9333ea;
--lighting-highlight-color: #d8b4fe;
}
body {
--x: 0px;
--y: 0px;
max-width: 600px;
margin: 80px auto;
font-size: 1.5rem;
font-family: Helvetica;
background-color: #020617;
color: #94a3b8;
}
div {
padding: 40px;
}
a {
text-decoration: none;
color: #9333ea;
display: inline-block;
background-image: radial-gradient(var(--lighting-highlight-color), var(--lighting-color), var(--lighting-color));
background-size: var(--lighting-size) var(--lighting-size);
background-repeat: no-repeat;
background-position-x: calc(var(--x) - var(--positionX) - calc(var(--lighting-size) / 2));
background-position-y: calc(var(--y) - var(--positionY) - calc(var(--lighting-size) / 2));
background-color: var(--lighting-color);
color: transparent;
-webkit-background-clip: text;
background-clip: text;
}
.card {
width: 400px;
height: 400px;
position: relative;
border-radius: 40px;
padding: 40px;
box-sizing: border-box;
overflow: hidden;
box-shadow: inset 0px 0px 40px rgba(0, 0, 0, .8), 0px 8px 20px rgba(0, 0, 0, .6);
}
.card::after {
content: '';
position: absolute;
top: -300px;
right: -300px;
bottom: -300px;
left: -300px;
background: conic-gradient(from 180deg at 50% 50%, #12001B -97.5deg, #000000 14.05deg, #040EFF 54.01deg, #8000FF 113.42deg, #00B6B6 185.62deg, #12001B 262.5deg, #000000 374.05deg);
filter: blur(60px) brightness(1.5);
z-index: -1;
animation: 30s move linear infinite;
}
.card>h2 {
margin: 0;
padding: 0;
font-size: 60px;
letter-spacing: -1px;
color: #fff;
text-shadow: 0px 2px 4px rgba(0, 0, 0, .3);
}
span {
font-size: 50px;
font-weight: normal;
display: block;
}
.card>div {
background-color: rgba(0, 0, 0, 0.5);
padding: 20px 40px;
font-size: 32px;
position: absolute;
bottom: 0;
left: 0;
right: 0;
color: #fff;
}
@keyframes move {
from {
transform: rotate(180deg);
}
to {
transform: rotate(540deg);
}
}