Replies: 3 comments
-
Try setting the background following https://quarto.org/docs/presentations/revealjs/index.html#slide-backgrounds and modify the associated (S)CSS (use your browser inspect/developper mode). |
Beta Was this translation helpful? Give feedback.
-
Hey @jkub6! I did some experimenting with this and was able to combine gradient backgrounds with image/iframe backgrounds. It might not work for your particular use case, because with my method the image ends up on top of the gradient—you have to make the image semi-transparent for the gradient to show through underneath. So you can't have the gradient completely obscure the image. You'd need a "baked" gradient in the image in that case. That said, I believe gradient backgrounds were "officially" introduced in Revealjs 4.4.0, and Quarto still uses a version < 4. Upgrading is on the release schedule for Quarto 1.4 (see #4795) , but I don't know if they plan to upgrade all the way to 4.4.0. Hopefully if they do, this kind of thing will be more feasible! |
Beta Was this translation helpful? Give feedback.
-
Thanks everyone for the ideas! It is impressive what Quarto/Revealjs is capable of. Here is a solution I found that uses the "data-state" attribute and CSS custom properties:
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
My goal is to apply custom styling to the background of a slide (gradients+image+etc...) to make a fade-in image/quote slide. This is relatively easy on the foreground portion of the slide, but I haven't found a good solution for the background. I have gotten something to work, but it seems a bit hacky - I set both and then "undo" the foreground. Is there any better way to make slide 2?
Slide 1 - Foreground
Slide 2 - Background (the goal)
Beta Was this translation helpful? Give feedback.
All reactions