diff options
author | metamuffin <metamuffin@disroot.org> | 2023-12-11 00:21:13 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-12-11 00:21:13 +0100 |
commit | b42ded3fcaf2088e464c5d4861449879a90c6ba0 (patch) | |
tree | eff66c1c39a8e2ec61f121d446964d61c24ac7e7 /web/script/player/popup.ts | |
parent | b050eb5c37e68a6fdd57068d4e73748bea3b0a11 (diff) | |
download | jellything-b42ded3fcaf2088e464c5d4861449879a90c6ba0.tar jellything-b42ded3fcaf2088e464c5d4861449879a90c6ba0.tar.bz2 jellything-b42ded3fcaf2088e464c5d4861449879a90c6ba0.tar.zst |
horrible midnight fixes and some fancy popups in the player
Diffstat (limited to 'web/script/player/popup.ts')
-rw-r--r-- | web/script/player/popup.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/web/script/player/popup.ts b/web/script/player/popup.ts index fb596b0..39b5b0f 100644 --- a/web/script/player/popup.ts +++ b/web/script/player/popup.ts @@ -32,9 +32,14 @@ export class Popup { this.content_hov = false; this.update_hov() }) + this.content.classList.add("jsp-popup") this.container.append(this.content) } else { - this.container.removeChild(this.content!) + const content = this.content! + content.classList.add("jsp-popup-out") + setTimeout(() => { + this.container.removeChild(content) + }, 100) this.content = undefined } this.shown = s |