diff --git a/src/components/VideoPlayer.svelte b/src/components/VideoPlayer.svelte
index 2ed1038..07b476d 100644
--- a/src/components/VideoPlayer.svelte
+++ b/src/components/VideoPlayer.svelte
@@ -1,11 +1,27 @@
-
dispatch("exit")}>
+
(visible = false)}
+ class:visible
+ on:transitionend={() => exit()}
+>
@@ -26,5 +42,11 @@
left: 50%;
transform: translate(-50%, -50%);
}
+
+ transition: opacity 0.5s;
+ opacity: 0;
+ &.visible {
+ opacity: 1;
+ }
}