From 09a021ec38701ef15cb33c29ecf80dd4025eb7d4 Mon Sep 17 00:00:00 2001 From: Bartek Szopka Date: Wed, 4 Jan 2012 22:07:52 +0100 Subject: [PATCH] fixing the perspective for scaled steps --- js/impress.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/impress.js b/js/impress.js index f680802..a60c0cc 100644 --- a/js/impress.js +++ b/js/impress.js @@ -234,6 +234,9 @@ var zoomin = target.scale.x >= current.scale.x; 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), transitionDelay: (zoomin ? "500ms" : "0ms") });