fix(player): keep the new cover opaque during the crossfade
Continuous Integration / build_web (push) Failing after 1s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
Continuous Integration / build_web (push) Failing after 1s
Continuous Integration / build (macos-latest) (push) Skipped
Continuous Integration / build (ubuntu-22.04) (push) Skipped
Continuous Integration / build (windows-11-arm) (push) Skipped
Continuous Integration / build (windows-latest) (push) Skipped
Continuous Integration / nightly_release (push) Skipped
- the incoming sleeve no longer fades in from zero while the old one fades out, so the artwork does not dim mid-transition
This commit is contained in:
1 parent
4b67c94494
commit
8e9e5eeff2
2 files changed
+10
-1
No files matched your search
@@ -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 {
|
||||
|
||||
@@ -185,7 +185,9 @@ const CoverArt = ({ src, alt }: { src?: string; alt: string }) => {
|
||||
{current ? (
|
||||
<img
|
||||
key={current}
|
||||
className="music-player-art-current"
|
||||
className={`music-player-art-current${
|
||||
previous ? " is-static" : ""
|
||||
}`}
|
||||
src={current}
|
||||
alt={alt}
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user