diff options
author | Bartek Szopka <bartek.szopka+github@gmail.com> | 2012-01-04 22:07:52 +0100 |
---|---|---|
committer | Bartek Szopka <bartek.szopka+github@gmail.com> | 2012-01-04 22:07:52 +0100 |
commit | 09a021ec38701ef15cb33c29ecf80dd4025eb7d4 (patch) | |
tree | 66e8519a52ef192b72eba859b7c5ceaa7db8ddac | |
parent | d0d67fe4357cefdce459816d7f55925cc6b0801d (diff) | |
download | impress.js-09a021ec38701ef15cb33c29ecf80dd4025eb7d4.tar.gz |
fixing the perspective for scaled steps
-rw-r--r-- | js/impress.js | 3 |
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") }); |