fixing the perspective for scaled steps

This commit is contained in:
Bartek Szopka committed 2012-01-04 22:07:52 +01:00
1 parent d0d67fe435
commit 09a021ec38
1 file changed
+3
+3
View File
@@ -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")
});