From 8e9e5eeff2cee229d6c7e20c3a38f2d833e34a8e Mon Sep 17 00:00:00 2001 From: 1xDed Date: Tue, 1 Dec 2026 11:04:08 +0300 Subject: [PATCH] fix(player): keep the new cover opaque during the crossfade - the incoming sleeve no longer fades in from zero while the old one fades out, so the artwork does not dim mid-transition --- src/routes/_api/player/audio.scss | 7 +++++++ src/routes/_api/player/audio.tsx | 4 +++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/routes/_api/player/audio.scss b/src/routes/_api/player/audio.scss index 9de67e7..f81494c 100644 --- a/src/routes/_api/player/audio.scss +++ b/src/routes/_api/player/audio.scss @@ -133,6 +133,13 @@ &-current { z-index: 1; animation: cover-fade-in 0.55s ease; + + // During a swap the new sleeve is already fully opaque underneath, + // only the old one fades out — the picture never dims. + &.is-static { + animation: none; + opacity: 1; + } } > .material-symbols-rounded { diff --git a/src/routes/_api/player/audio.tsx b/src/routes/_api/player/audio.tsx index 7906a1b..d91f64b 100644 --- a/src/routes/_api/player/audio.tsx +++ b/src/routes/_api/player/audio.tsx @@ -185,7 +185,9 @@ const CoverArt = ({ src, alt }: { src?: string; alt: string }) => { {current ? ( {alt}