Use page transition component to avoid repetition on main

This commit is contained in:
2021-11-30 00:23:36 +01:00
parent ba09c2af2d
commit f8fe141505
9 changed files with 28 additions and 44 deletions

View File

@@ -0,0 +1,14 @@
<script lang="ts">
import { fade } from 'svelte/transition'
export let refresh = ''
</script>
{#key refresh}
<div
in:fade={{ duration: 400, delay: 500 }}
out:fade={{ duration: 400 }}
>
<slot />
</div>
{/key}