diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index a690977..dc268d0 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -5,12 +5,8 @@ import type { PageData } from "./$types"; import { blur, - crossfade, - draw, fade, fly, - scale, - slide } from 'svelte/transition'; import { cubicOut @@ -41,6 +37,12 @@ onMount(() => { charAmount = Math.floor(window.innerWidth / 20); + window.onkeydown = (e) => { + if (e.code === "Space") { + playAudio(); + window.onkeydown = null; + } + }; }); @@ -145,7 +147,7 @@