From 8e34bf512ee0955b9750a89c9409b08b3dd063ea Mon Sep 17 00:00:00 2001 From: AlexBocken Date: Tue, 11 Jul 2023 19:36:45 +0200 Subject: [PATCH] do not show progress of downloading full image --- src/lib/components/TitleImgParallax.svelte | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/lib/components/TitleImgParallax.svelte b/src/lib/components/TitleImgParallax.svelte index aa1b2ec..919f0ee 100644 --- a/src/lib/components/TitleImgParallax.svelte +++ b/src/lib/components/TitleImgParallax.svelte @@ -54,12 +54,15 @@ top: 0; width: min(1000px, 100dvw); z-index: -1; + opacity: 0; + transition: 200ms; height: max(60dvh,600px); object-fit: cover; object-position: 50% 20%; backdrop-filter: blur(20px); - transition: 50ms; + transition: 200ms; filter: blur(20px); + z-index: -10; } .image-container::after { @@ -81,6 +84,11 @@ height: max(60dvh,600px); z-index: -2; } +.placeholder_blur{ + width: inherit; + height: inherit; + backdrop-filter: blur(20px); +} div:has(.placeholder){ position: absolute; top: 0; @@ -90,13 +98,16 @@ div:has(.placeholder){ } .unblur#image{ filter: blur(0px) !important; + opacity: 1; }
+
isloaded=true} alt=""/> +