bartaz/impress.js — Issue #98: scaling according to screen resolution
Author: 00alexx
Created: 2012-02-20 02:25:20+00:00
State: open

i think it is very useful to scale the whole presentations, so that it adjust to different screen resolutions.
i just did something like that:
var db = document.body;
var sx = db.clientWidth / window.innerWidth;
var sy = db.clientHeight / window.innerHeight;
window_scale_factor = (1/Math.max(sx, sy));

and then added the window_scale_factor as a factor to this function in your code:

css(root, {
// to keep the perspective look similar for different scales
// we need to 'scale' the perspective, too
perspective: step.scale * 1000 + "px",
transform: scale(target.scale*window_scale_factor),
transitionDuration: duration,
transitionDelay: (zoomin ? "500ms" : "0ms")
});