fixing the perspective for scaled steps

This commit is contained in:
Bartek Szopka
2012-01-04 22:07:52 +01:00
parent d0d67fe435
commit 09a021ec38

View File

@@ -234,6 +234,9 @@
var zoomin = target.scale.x >= current.scale.x; var zoomin = target.scale.x >= current.scale.x;
css(impress, { css(impress, {
// to keep the perspective look similar for different scales
// we need to 'scale' the perspective, too
perspective: step.scale.x * 1000 + "px",
transform: scale(target.scale), transform: scale(target.scale),
transitionDelay: (zoomin ? "500ms" : "0ms") transitionDelay: (zoomin ? "500ms" : "0ms")
}); });