From 735f113a1fe08e76acdfd62aef70a620606a25fe Mon Sep 17 00:00:00 2001 From: Bob Fanger Date: Mon, 20 Jun 2022 14:47:20 +0200 Subject: [PATCH] feat: Support css units in fly and blur transitions --- site/content/docs/04-run-time.md | 7 +++--- src/runtime/internal/utils.ts | 12 ++++++++++ src/runtime/transition/index.ts | 17 +++++++------- test/utils/index.ts | 38 ++++++++++++++++++++++++++++++++ 4 files changed, 63 insertions(+), 11 deletions(-) diff --git a/site/content/docs/04-run-time.md b/site/content/docs/04-run-time.md index ef21112034..e3928b6156 100644 --- a/site/content/docs/04-run-time.md +++ b/site/content/docs/04-run-time.md @@ -670,7 +670,7 @@ Animates a `blur` filter alongside an element's opacity. * `duration` (`number`, default 400) — milliseconds the transition lasts * `easing` (`function`, default `cubicInOut`) — an [easing function](/docs#run-time-svelte-easing) * `opacity` (`number`, default 0) - the opacity value to animate out to and in from -* `amount` (`number`, default 5) - the size of the blur in pixels +* `amount` (`number|string`, default 5) - the size of the blur (support css units, for example: "4rem", numbers use px) ```sv