forked from opensource-society/notesvault
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaurora.css
More file actions
60 lines (55 loc) · 1.76 KB
/
aurora.css
File metadata and controls
60 lines (55 loc) · 1.76 KB
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
/* Aurora Background Effect */
@keyframes aurora {
from {
background-position: 50% 50%, 50% 50%;
}
to {
background-position: 350% 50%, 350% 50%;
}
}
.aurora-background {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: -1;
overflow: hidden;
pointer-events: none;
}
.aurora-inner {
position: absolute;
inset: -10px;
background-image:
repeating-linear-gradient(100deg, #fff 0%, #fff 7%, transparent 10%, transparent 12%, #fff 16%),
repeating-linear-gradient(100deg, #3b82f6 10%, #a5b4fc 15%, #93c5fd 20%, #ddd6fe 25%, #60a5fa 30%);
background-size: 300%, 200%;
background-position: 50% 50%, 50% 50%;
opacity: 0.5;
filter: blur(10px);
animation: aurora 60s linear infinite;
}
.dark .aurora-inner {
background-image:
repeating-linear-gradient(100deg, #000 0%, #000 7%, transparent 10%, transparent 12%, #000 16%),
repeating-linear-gradient(100deg, #3b82f6 10%, #a5b4fc 15%, #93c5fd 20%, #ddd6fe 25%, #60a5fa 30%);
filter: blur(10px) invert(0);
}
/* Radial mask for aurora effect */
.aurora-inner::after {
content: "";
position: absolute;
inset: 0;
background-image:
repeating-linear-gradient(100deg, #fff 0%, #fff 7%, transparent 10%, transparent 12%, #fff 16%),
repeating-linear-gradient(100deg, #3b82f6 10%, #a5b4fc 15%, #93c5fd 20%, #ddd6fe 25%, #60a5fa 30%);
background-size: 200%, 100%;
background-attachment: fixed;
mix-blend-mode: difference;
mask-image: radial-gradient(ellipse at 100% 0%, black 10%, transparent 70%);
}
.dark .aurora-inner::after {
background-image:
repeating-linear-gradient(100deg, #000 0%, #000 7%, transparent 10%, transparent 12%, #000 16%),
repeating-linear-gradient(100deg, #3b82f6 10%, #a5b4fc 15%, #93c5fd 20%, #ddd6fe 25%, #60a5fa 30%);
}