From: Vincent Vanwaelscappel Date: Mon, 19 Jul 2021 16:41:50 +0000 (+0200) Subject: wait #4599 @0:20 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=ca16dfa22c926307909877535c99576a28886481;p=fluidbook-html5.git wait #4599 @0:20 --- 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';