forked from MapComplete/MapComplete
UX: hide drawer during loading page
This commit is contained in:
parent
540e2c227e
commit
c30722451e
2 changed files with 16 additions and 3 deletions
|
|
@ -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
|
||||
$: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue