From ca16dfa22c926307909877535c99576a28886481 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 19 Jul 2021 18:41:50 +0200 Subject: [PATCH] wait #4599 @0:20 --- js/libs/fluidbook/fluidbook.links.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/js/libs/fluidbook/fluidbook.links.js b/js/libs/fluidbook/fluidbook.links.js index 57707785..d5df0bf4 100644 --- a/js/libs/fluidbook/fluidbook.links.js +++ b/js/libs/fluidbook/fluidbook.links.js @@ -476,7 +476,7 @@ FluidbookLinks.prototype = { } var $this = this; - $(".contentLink[data-animations]").each(function () { + $("#currentDoublePage,#links").find('.contentLink[data-animations]').each(function () { $this.animateContentLink($(this), true); }); }, @@ -494,7 +494,7 @@ FluidbookLinks.prototype = { var defaults = ['ease', 'duration', 'delay']; var firstDefaults = {}; - if (animations.length === 0) { + if (animations === undefined || animations === null || animations.length === 0) { return; } if (animations[0]["autostart"] === undefined) { @@ -593,12 +593,13 @@ FluidbookLinks.prototype = { from.backgroundPosition = to.backgroudPosition = animation.transformorigin; from.backgroundSize = animation.type === 'zoomin' ? '100% 100%' : s + ' ' + s; to.backgroundSize = animation.type === 'zoomout' ? '100% 100%' : s + ' ' + s; - to.visibility = 'visible'; + //to.visibility = 'visible'; if (Modernizr.firefox) { to.force3D = true; to.rotation = 0.01; from.rotation = 0.01; } + } else if (animation.type === 'fadein') { from.display = 'none'; to.display = 'block'; -- 2.39.5