You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<Asidetype="caution"title="Last update: April 2024">
9
+
<Asidetype="caution"title="Last update: August 2024">
10
10
This is an active area of research. Please [submit a bug
11
11
report](https://github.com/DaveKeehl/svelte-reveal/issues/new) in case of issues.
12
12
</Aside>
@@ -24,31 +24,15 @@ export const ssr = false;
24
24
25
25
## With SSR
26
26
27
-
If your page does need to leverage server-side rendering, the setup remains easy but it requires a few more steps.
27
+
If your page does need to leverage server-side rendering, you need to instruct the Svelte Reveal preprocessor to go in ssr mode as follows. Doing as such will prevent the elements to flicker as soon as the page is hydrated and the DOM is accessible to the library.
2. Add the `sr__hide` css class to every element targeted by Svelte Reveal with `use:reveal`. This will prevent the elements to flicker as soon as the page is hydrated and the DOM is accessible to the library.
0 commit comments