hakimel / reveal.js

The HTML Presentation Framework
https://revealjs.com
MIT License
67.61k stars 16.63k forks source link

opacity for background-image (from data-state) ignored when printing to PDF #1973

Open deki opened 7 years ago

deki commented 7 years ago

When I define the opacity for a background-image in CSS like this

html.background-opacity .slide-background.present {
    opacity: 0.2;
}

and use it in data-state, it works fine except for ?print-pdf.

This was also reported on Stackoverflow by another user: https://stackoverflow.com/questions/44950917/reveal-js-opacity-of-background-image-when-printing-to-pdf

sjackman commented 6 years ago

Is there a way to specify the background-opacity in Markdown with Pandoc?

bnjmnt4n commented 6 years ago

Sadly, this is unable to work as we don't apply states during PDF exporting as all slides will be shown. In this case, during printing, applying styles to .slide-background won't work as expected. I'm not too sure if there is any easy way to work around this.

sjackman commented 6 years ago

I'm primarily concerned with HTML output, but I do occasionally use PDF output as well.