From f52df75bc2bcaa2c0ca7d35ea21a9178e11e1989 Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Fri, 16 Jul 2021 17:26:04 +0200 Subject: [PATCH] Add back opacity change --- ts/reviewer/index.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ts/reviewer/index.ts b/ts/reviewer/index.ts index 297318221..7119ded42 100644 --- a/ts/reviewer/index.ts +++ b/ts/reviewer/index.ts @@ -92,6 +92,8 @@ async function _updateQA( const qa = document.getElementById("qa")!; + qa.style.opacity = "0"; + try { setInnerHTML(qa, html); } catch (error) { @@ -110,6 +112,8 @@ async function _updateQA( }) .catch(renderError("MathJax")); + qa.style.opacity = "1"; + await _runHook(onShownHook); }