-
DescriptionAs title, in revealjs, when Below is a video of this situation. revealjs.movA small sample of ---
title: "Test"
format:
revealjs:
theme: [default, styles.scss]
incremental: true
---
## Test
- A
- B
- $\color{red}{B}$
- B
- B
- B and my /*-- scss:defaults --*/
/*-- scss:rules --*/
.fragment {
opacity: 1 !important;
visibility: visible !important;
filter: brightness(0.01) invert(0.8) !important;
&.visible {
filter: none !important;
}
} In revealjs(https://revealjs.com/fragments/#custom-fragments-4.5.0), this can be easily achieved by the following html without this situation. <style>
.fragment.blur {
filter: invert(75%);
}
.fragment.blur.visible {
filter: none;
}
</style>
<section>
<p class="fragment custom blur">One</p>
<p class="fragment custom blur">Two</p>
<p class="fragment custom blur">Three</p>
</section> Is there any good way to solve it? My quarto version is 1.4.554 and my system is macOS 14.4.1 (23E224). |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I am not sure there is or that the issue is at Quarto level.
If it's indeed a Pandoc "issue", there might be some ongoing discussions: |
Beta Was this translation helpful? Give feedback.
-
This is a Revealjs mechanism, and how CSS works on transition. If you search the web for CSS flickering on transition, you'll see this is a common problem. The current revealjs doc example may not work in our current state because Quarto still uses 4.1.2 which set opacity: 0 and visibility: hidden by default on fragments Custom fragment transition is from 4.5.0 following this issue and some specificity change: hakimel/reveal.js@006b348 We will update soon to Revealjs v5 to this may be solved at that time. I'll add to the issue there. |
Beta Was this translation helpful? Give feedback.
Quarto 1.6 now uses revealjs 5 and the custom fragments update is part of it: https://prerelease.quarto.org/docs/presentations/revealjs/advanced.html#custom-fragments