From a4a993f55f0dcedd9fc92c46e776f2e4cc473fc6 Mon Sep 17 00:00:00 2001 From: krassowski <5832902+krassowski@users.noreply.github.com> Date: Sat, 17 Aug 2024 10:18:45 +0100 Subject: [PATCH] Attempt to fix Firefox issue --- content/demo.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/content/demo.html b/content/demo.html index 852e7b6..464bf80 100644 --- a/content/demo.html +++ b/content/demo.html @@ -56,6 +56,7 @@ iframe { width: 100%; height: 100%; + transition: opacity .25s ease-in-out; } .code-wrapper { position: relative; @@ -189,7 +190,7 @@

CDAO AI Assurance Portal

wrapper.appendChild(spinerWrapper); wrapper.appendChild(iframe); - iframe.style.display = 'none'; + iframe.style.opacity = '0'; iframe.onload = async () => { if (iframe.contentDocument) { iframe.contentDocument.head.appendChild(styleSheet); @@ -204,7 +205,7 @@

CDAO AI Assurance Portal

}); } else { codeEl.style.display = 'none'; - iframe.style.display = 'block'; + iframe.style.opacity = '1'; spinerWrapper.style.display = 'none'; } }