From a0dbb0fd079a3b31a40979e96401384b45427e81 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 14 Feb 2022 11:09:38 +0100 Subject: [PATCH] wait #5091 @0.25 --- js/libs/fluidbook/fluidbook.links.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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') { -- 2.39.5