From ea8a92481ca9414f903fc73c02494b7707507b6e Mon Sep 17 00:00:00 2001
From: tglide <26071571+TGlide@users.noreply.github.com>
Date: Tue, 16 May 2023 09:57:45 +0100
Subject: [PATCH] feat: cmd center animation
---
src/routes/console/commandCenter.svelte | 25 +++++++++++++++++++++++--
1 file changed, 23 insertions(+), 2 deletions(-)
diff --git a/src/routes/console/commandCenter.svelte b/src/routes/console/commandCenter.svelte
index bbdf7c95f..80b712773 100644
--- a/src/routes/console/commandCenter.svelte
+++ b/src/routes/console/commandCenter.svelte
@@ -2,6 +2,8 @@
import Dialog from '$lib/components/dialog.svelte';
import { commands, disableCommands, registerCommand } from '$lib/helpers/commandCenter';
import { isMac } from '$lib/helpers/platform';
+ import { bounceOut, elasticOut, quadOut } from 'svelte/easing';
+ import { crossfade } from 'svelte/transition';
let open = false;
let search = '';
@@ -49,6 +51,11 @@
}
$: $disableCommands(open);
+
+ const [send, receive] = crossfade({
+ duration: 150,
+ easing: quadOut
+ });