add transition

This commit is contained in:
Fractal-Tess
2022-12-21 02:57:50 +02:00
parent 0898d6ed5f
commit 90172efa4b
2 changed files with 19 additions and 5 deletions

View File

@@ -0,0 +1,10 @@
<script>
import { router } from 'tinro';
import { fade } from 'svelte/transition';
</script>
{#key $router.path}
<div in:fade={{ duration: 700 }} class="h-full w-full">
<slot />
</div>
{/key}