-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheffects.css
79 lines (63 loc) · 1.57 KB
/
effects.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
/* Default text-glow */
pre, p, li, h1, h2, h3, h4, td {
text-shadow: 0 0 7px var(--main-color), 0 0 20px var(--main-color), 0 0 40px var(--main-color);
}
/* FLICKER ANIMATION */
@keyframes flicker {
from {
opacity: 100%;
}
to {
opacity: 92.5%;
/* margin-left: 0.03em; /* Potentially causes performance issues and leads to less readability*/
}
}
#canvas {
animation: 1.1s infinite both flicker;
}
/* NOISE */
@keyframes noise {
from {
filter: brightness(0.1);
}
to {
filter: brightness(0.085);
}
}
#noise_vid {
object-fit: cover;
filter: brightness(0.1);
animation: 5s infinite forward noise;
opacity: 0.5;
}
#noise_vid, #videohue {
animation: 5s infinite forward noise;
opacity: 0.5;
}
/* SCAN-LINES */
@keyframes gradient {
0% {
background-position: 0% 0%;
}
100% {
background-position: 0% -145%;
}
}
#videohue {
opacity: var(--bg-opacity);
display: block;
background: linear-gradient(var(--bg-color-2) 70%, rgb(var(--bg-color)) 100%);
background-size: 100% 200%; /* This ensures the gradient covers the entire element */
animation: gradient 10s infinite linear;
}
/* not displayed by default */
#noise_vid, #rain_vid {
display: block;
}
/* PROJECTS GLOW */
.pr_warning, .pr_warning em {
text-shadow: 0 0 7px var(--warning-color), 0 0 20px var(--warning-color), 0 0 40px var(--warning-color);
}
.pr_info, .pr_info em{
text-shadow: 0 0 7px var(--info-color), 0 0 20px var(--info-color), 0 0 40px var(--info-color);
}