Animated CRT scanlines: rolling gradient + subtle flicker overlay

This commit is contained in:
blazblue547-afk committed 2026-06-13 18:26:28 -04:00
1 parent 6428b51d01
commit c38809930e
2 files changed
+670 -1

No files matched your search

+29 -1
View File
@@ -88,7 +88,32 @@
.scanlines {
position: fixed; inset: 0;
pointer-events: none; z-index: 999;
background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 3px);
background: repeating-linear-gradient(
0deg,
transparent,
transparent 2px,
rgba(0,0,0,0.04) 2px,
rgba(0,0,0,0.04) 3px
);
animation: scanlines-scroll 8s linear infinite;
opacity: 0.7;
}
@keyframes scanlines-scroll {
from { background-position: 0 0; }
to { background-position: 0 6px; }
}
/* Subtle CRT flicker overlay */
.scan-flicker {
position: fixed; inset: 0;
pointer-events: none; z-index: 998;
background: transparent;
animation: crt-flicker 0.15s infinite;
}
@keyframes crt-flicker {
0% { background: rgba(255,255,255,0.003); }
50% { background: transparent; }
100% { background: rgba(0,0,0,0.006); }
}
/* ── Layout ── */
@@ -398,6 +423,8 @@
.logo { animation: none; }
.status-dot { animation: none; }
.loading { animation: none; }
.scanlines { animation: none; }
.scan-flicker { animation: none; }
}
/* ── Pagination ── */
@@ -451,6 +478,7 @@
<div class="triangle-decor t2"></div>
<div class="stars" id="stars"></div>
<div class="scanlines"></div>
<div class="scan-flicker"></div>
<div class="app" id="app">
<div class="logo-wrap">