diff --git a/src/routes/signin/+page.svelte b/src/routes/signin/+page.svelte index 75d1ed1..e9e74d8 100644 --- a/src/routes/signin/+page.svelte +++ b/src/routes/signin/+page.svelte @@ -16,13 +16,18 @@ onDestroy(unsubscribe); let showAnimation = false; + let animationTimer: ReturnType; onMount(() => { - setTimeout(() => { + animationTimer = setTimeout(() => { showAnimation = true; }, 100); }); + onDestroy(() => { + clearTimeout(animationTimer); + }); + async function getUser() { try { const {