mirror of
https://github.com/pheralb/svgl.git
synced 2025-02-06 06:58:04 +08:00
✨ Update transition.
This commit is contained in:
parent
7e3b2e0636
commit
4b36ee02ba
@ -1,10 +1,10 @@
|
||||
<script lang="ts">
|
||||
import { fade } from 'svelte/transition';
|
||||
import { fly } from 'svelte/transition';
|
||||
export let pathname: string = '';
|
||||
</script>
|
||||
|
||||
{#key pathname}
|
||||
<div in:fade={{ duration: 300 }}>
|
||||
<div in:fly={{ x: 0, y: 23, duration: 450 }}>
|
||||
<slot />
|
||||
</div>
|
||||
{/key}
|
||||
|
Loading…
x
Reference in New Issue
Block a user