From 3a540d1d443217408c7212fae2d09b001bbdcee4 Mon Sep 17 00:00:00 2001 From: isUnknown Date: Wed, 25 Sep 2024 07:45:21 +0200 Subject: [PATCH] remove background when image loaded --- assets/css/src/vanilla.css | 5 +++++ assets/dist/style.css | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/assets/css/src/vanilla.css b/assets/css/src/vanilla.css index f033f78..68063cf 100644 --- a/assets/css/src/vanilla.css +++ b/assets/css/src/vanilla.css @@ -16,6 +16,11 @@ picture { display: flex !important; justify-content: center !important; align-items: center !important; + transition: background-color 0.3s ease-in-out; +} + +picture.hide { + background-color: transparent; } picture img { diff --git a/assets/dist/style.css b/assets/dist/style.css index fa25d86..56831f4 100644 --- a/assets/dist/style.css +++ b/assets/dist/style.css @@ -505,6 +505,11 @@ picture { display: flex !important; justify-content: center !important; align-items: center !important; + transition: background-color 0.3s ease-in-out; +} + +picture.hide { + background-color: transparent; } picture img {