feat: periodic glass sweep shimmer across console panel

This commit is contained in:
Aisland
2026-08-21 13:59:49 +08:00
parent 4b2134985b
commit fd03ef6cc6
3 changed files with 21 additions and 1 deletions
+4
View File
@@ -140,6 +140,10 @@ const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
out.consoleBgImage = conEl ? getComputedStyle(conEl).backgroundImage.slice(0, 60) : null;
out.consoleBgSize = conEl ? getComputedStyle(conEl).backgroundSize : null;
out.consoleBgColor = conEl ? getComputedStyle(conEl).backgroundColor : null;
var sweep = conEl ? getComputedStyle(conEl, '::before') : null;
out.sweepAnim = sweep ? sweep.animationName : null;
out.sweepContent = sweep ? (sweep.content !== 'none') : null;
out.sweepDur = sweep ? sweep.animationDuration : null;
var cards = grid.querySelectorAll('.dsh-wt_consoleCard');
out.cardCount = cards.length;
var c0 = cards[0];