aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartek Szopka <bartek.szopka+github@gmail.com>2012-01-04 22:07:52 +0100
committerBartek Szopka <bartek.szopka+github@gmail.com>2012-01-04 22:07:52 +0100
commit09a021ec38701ef15cb33c29ecf80dd4025eb7d4 (patch)
tree66e8519a52ef192b72eba859b7c5ceaa7db8ddac
parentd0d67fe4357cefdce459816d7f55925cc6b0801d (diff)
downloadimpress.js-09a021ec38701ef15cb33c29ecf80dd4025eb7d4.tar.gz
fixing the perspective for scaled steps
-rw-r--r--js/impress.js3
1 files changed, 3 insertions, 0 deletions
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")
});