File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -191,6 +191,15 @@ class ReaderViewModel extends ReactiveViewModel {
191191 src: url('$fontUri ');
192192 }
193193
194+ body.hidden {
195+ opacity: 0;
196+ }
197+
198+ body.visible {
199+ opacity: 1;
200+ transition: opacity 1s ease-out;
201+ }
202+
194203 body.light {
195204 color: var(--light-theme-medium-slate);
196205 background-color: var(--light-theme-white);
@@ -387,6 +396,8 @@ class ReaderViewModel extends ReactiveViewModel {
387396 </div>
388397
389398 <script>
399+ document.body.className = 'hidden';
400+
390401 var elements = null;
391402 var handleScroll = null;
392403 document.addEventListener("DOMContentLoaded", () => {
@@ -428,6 +439,8 @@ class ReaderViewModel extends ReactiveViewModel {
428439 ${linkReaderAreaScrolling == false ? """
429440 document.getElementById("$secondaryScrollToId ").scrollIntoView();
430441 """ : "" }
442+
443+ document.body.className = '$themeName visible';
431444 });
432445
433446 function onCreateBookmark(bookmark) {
You can’t perform that action at this time.
0 commit comments