🛠️ Add route transitions.

This commit is contained in:
pheralb
2023-03-19 14:53:18 +00:00
parent a2aee89088
commit 9afab3cf44
3 changed files with 25 additions and 4 deletions
+10
View File
@@ -0,0 +1,10 @@
<script lang="ts">
import { fade } from 'svelte/transition';
export let pathname: string = '';
</script>
{#key pathname}
<div in:fade={{ duration: 300 }}>
<slot />
</div>
{/key}