|
|
@ -207,15 +207,17 @@ $.fn.shape = function(parameters) { |
|
|
|
: duration |
|
|
|
; |
|
|
|
module.verbose('Setting animation duration', duration); |
|
|
|
$sides.add($side) |
|
|
|
.css({ |
|
|
|
'-webkit-transition-duration': duration, |
|
|
|
'-moz-transition-duration': duration, |
|
|
|
'-ms-transition-duration': duration, |
|
|
|
'-o-transition-duration': duration, |
|
|
|
'transition-duration': duration |
|
|
|
}) |
|
|
|
; |
|
|
|
if(settings.duration || settings.duration === 0) { |
|
|
|
$sides.add($side) |
|
|
|
.css({ |
|
|
|
'-webkit-transition-duration': duration, |
|
|
|
'-moz-transition-duration': duration, |
|
|
|
'-ms-transition-duration': duration, |
|
|
|
'-o-transition-duration': duration, |
|
|
|
'transition-duration': duration |
|
|
|
}) |
|
|
|
; |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
currentStageSize: function() { |
|
|
@ -496,6 +498,11 @@ $.fn.shape = function(parameters) { |
|
|
|
} |
|
|
|
; |
|
|
|
module.verbose('Setting the initial animation position as above', $nextSide, box); |
|
|
|
$sides |
|
|
|
.css({ |
|
|
|
'transform' : 'translateZ(-' + box.depth.active + 'px)' |
|
|
|
}) |
|
|
|
; |
|
|
|
$activeSide |
|
|
|
.css({ |
|
|
|
'transform' : 'rotateY(0deg) translateZ(' + box.depth.active + 'px)' |
|
|
@ -522,6 +529,11 @@ $.fn.shape = function(parameters) { |
|
|
|
} |
|
|
|
; |
|
|
|
module.verbose('Setting the initial animation position as below', $nextSide, box); |
|
|
|
$sides |
|
|
|
.css({ |
|
|
|
'transform' : 'translateZ(-' + box.depth.active + 'px)' |
|
|
|
}) |
|
|
|
; |
|
|
|
$activeSide |
|
|
|
.css({ |
|
|
|
'transform' : 'rotateY(0deg) translateZ(' + box.depth.active + 'px)' |
|
|
@ -548,6 +560,11 @@ $.fn.shape = function(parameters) { |
|
|
|
} |
|
|
|
; |
|
|
|
module.verbose('Setting the initial animation position as left', $nextSide, box); |
|
|
|
$sides |
|
|
|
.css({ |
|
|
|
'transform' : 'translateZ(-' + box.depth.active + 'px)' |
|
|
|
}) |
|
|
|
; |
|
|
|
$activeSide |
|
|
|
.css({ |
|
|
|
'transform' : 'rotateY(0deg) translateZ(' + box.depth.active + 'px)' |
|
|
@ -574,6 +591,11 @@ $.fn.shape = function(parameters) { |
|
|
|
} |
|
|
|
; |
|
|
|
module.verbose('Setting the initial animation position as left', $nextSide, box); |
|
|
|
$sides |
|
|
|
.css({ |
|
|
|
'transform' : 'translateZ(-' + box.depth.active + 'px)' |
|
|
|
}) |
|
|
|
; |
|
|
|
$activeSide |
|
|
|
.css({ |
|
|
|
'transform' : 'rotateY(0deg) translateZ(' + box.depth.active + 'px)' |
|
|
@ -819,7 +841,7 @@ $.fn.shape.settings = { |
|
|
|
allowRepeats: false, |
|
|
|
|
|
|
|
// animation duration
|
|
|
|
duration : 700, |
|
|
|
duration : false, |
|
|
|
|
|
|
|
// possible errors
|
|
|
|
error: { |
|
|
|