From: Vincent Vanwaelscappel Date: Fri, 16 Sep 2022 14:33:55 +0000 (+0200) Subject: wait #5464 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=5297936481d57ca7330a85529596411d96f9700b;p=fluidbook-html5.git wait #5464 @0.5 --- diff --git a/js/libs/fluidbook/fluidbook.links.js b/js/libs/fluidbook/fluidbook.links.js index abefe144..5da91cc4 100644 --- a/js/libs/fluidbook/fluidbook.links.js +++ b/js/libs/fluidbook/fluidbook.links.js @@ -665,13 +665,7 @@ FluidbookLinks.prototype = { } var defaultParams = {}; var globalDefault = { - x: 0, - y: 0, - yoyo: 0, - repeatdelay: 0, - repeat: 0, - transformorigin: '50% 50%', - preventflickering: 0 + x: 0, y: 0, yoyo: 0, repeatdelay: 0, repeat: 0, transformorigin: '50% 50%', preventflickering: 0 }; if ($(linkElement).hasClass('textLink')) { @@ -744,6 +738,18 @@ FluidbookLinks.prototype = { from.scale = 1; to.scale = animation.scale; from.transformOrigin = to.transformOrigin = animation.transformorigin; + } else if (animation.type === 'rotate') { + to.display = 'block'; + to.visibility = 'visible'; + from.rotation = 0; + to.rotation = animation.rotation; + from.transformOrigin = to.transformOrigin = animation.transformorigin; + } else if (animation.type === 'rotatefrom') { + to.display = 'block'; + to.visibility = 'visible'; + to.rotation = 0; + from.rotation = animation.rotation; + from.transformOrigin = to.transformOrigin = animation.transformorigin; } else if (animation.type === 'translatefrom') { from.display = 'none'; to.display = 'block';