From: Vincent Vanwaelscappel Date: Mon, 14 Feb 2022 10:09:38 +0000 (+0100) Subject: wait #5091 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=a0dbb0fd079a3b31a40979e96401384b45427e81;p=fluidbook-html5.git wait #5091 @0.25 --- diff --git a/js/libs/fluidbook/fluidbook.links.js b/js/libs/fluidbook/fluidbook.links.js index 5ed6c940..a2e58072 100644 --- a/js/libs/fluidbook/fluidbook.links.js +++ b/js/libs/fluidbook/fluidbook.links.js @@ -585,6 +585,12 @@ FluidbookLinks.prototype = { if (animation.ease === undefined) { animation.ease = "Power1.easeOut"; } + if (animation.rotate !== undefined) { + animation.rotation = animation.rotate; + } + if (animation.rotation !== undefined) { + from.rotation = animation.rotation; + } to.ease = animation.ease; if (animation.delay !== undefined) { @@ -631,8 +637,8 @@ FluidbookLinks.prototype = { //to.visibility = 'visible'; if (Modernizr.firefox) { to.force3D = true; - to.rotation = 0.01; - from.rotation = 0.01; + from.rotation += 0.01; + to.rotation = from.rotation; } } else if (animation.type === 'fadein') {