From c1fd147363649540e595cab849b5ebe75a02a581 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Sun, 21 Apr 2024 19:49:11 -0700
Subject: refactor(TextTransition): move to Layout

---
 src/lib/TextTransition.svelte | 28 ----------------------------
 1 file changed, 28 deletions(-)
 delete mode 100644 src/lib/TextTransition.svelte

(limited to 'src/lib/TextTransition.svelte')

diff --git a/src/lib/TextTransition.svelte b/src/lib/TextTransition.svelte
deleted file mode 100644
index bd7814de..00000000
--- a/src/lib/TextTransition.svelte
+++ /dev/null
@@ -1,28 +0,0 @@
-<script>
-	import { tweened } from 'svelte/motion';
-	import { cubicOut } from 'svelte/easing';
-
-	export let text = '';
-	export let opacityTransitionDuration = 50;
-	export let blurTransitionDuration = opacityTransitionDuration;
-	export let easing = cubicOut;
-
-	let previousValue = '';
-	let opacity = tweened(1, { duration: opacityTransitionDuration, easing });
-	let blur = tweened(0, { duration: blurTransitionDuration, easing });
-
-	$: {
-		if (text !== previousValue)
-			Promise.all([opacity.set(0), blur.set(10)]).then(() => {
-				previousValue = text;
-
-				Promise.all([opacity.set(1), blur.set(0)]);
-			});
-	}
-</script>
-
-<span
-	style="opacity: {$opacity}; filter: blur({$blur}px); transition: opacity {opacityTransitionDuration}ms, filter {blurTransitionDuration}ms;"
->
-	{previousValue}
-</span>
-- 
cgit v1.2.3

