aboutsummaryrefslogtreecommitdiff
path: root/web/script/player/popup.ts
diff options
context:
space:
mode:
Diffstat (limited to 'web/script/player/popup.ts')
-rw-r--r--web/script/player/popup.ts7
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