Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prevent reveal.js to zoom

I'm using reveal.js to present screenshots, but the images are not displayed at size 100%.
My bet is that there is a «zoom» trick, as the inspector shows:

<div class="slides" style="-snip- zoom: 0.5001428571428572;">

But that I can't prevent it to occur. Is there a configuration option, a js hack for this?

Here is a slide where I'd like my 800×600 image to display 800×600: http://profgra.org/lycee/presentation_demo.html#/2

Thanks!

like image 759
Gra Avatar asked Dec 20 '22 22:12

Gra


1 Answers

Thanks to Cvuorinen, here is the complete answer:

Reveal.initialize({
    ...
    // Bounds for smallest/largest possible scale to apply to content
    minScale: 1,
    maxScale: 1
});

Though it seems difficult to trig this only on some precise slides if they are embedded in the page via Markdown.

like image 175
Gra Avatar answered Dec 22 '22 12:12

Gra