UX: hide drawer during loading page

This commit is contained in:
Pieter Vander Vennet 2024-11-26 20:15:41 +01:00
parent 540e2c227e
commit c30722451e
2 changed files with 16 additions and 3 deletions

View file

@ -1,13 +1,13 @@
<script lang="ts">
import { Drawer } from "flowbite-svelte"
import { sineIn } from "svelte/easing"
import { cubicInOut } from "svelte/easing"
import { UIEventSource } from "../../Logic/UIEventSource.js"
export let shown: UIEventSource<boolean>
let transitionParams = {
x: -320,
duration: 200,
easing: sineIn,
easing: cubicInOut,
}
let hidden = !shown.data
$: {