Replies: 1 comment 6 replies
-
Hello @lazka,
.do-not-display {
display: none;
}
window.addEventListener("load", (event) => {
const elements = document.querySelectorAll(".do-not-display");
for (const element of elements) {
element.classList.remove("do-not-display"); // notice the lack of the dot
}
}); |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
If you go to https://squidfunk.github.io/mkdocs-material/reference/diagrams/?h=mermaid#usage and hit refresh the mermaid syntax will flash before the diagram is rendered.
I'd prefer the element to not be visible until it is fully loaded.
Does anyone have any CSS/JS tricks that could help here? I tried but failed due to it using shadow dom.
Beta Was this translation helpful? Give feedback.
All reactions