From a8b139eaa6ca01da19f0ff939e649d47d1f898f9 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 24 Aug 2020 14:54:32 +0200 Subject: [PATCH] wait #3785 @0.5 --- 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 9718f021..b7d65681 100644 --- a/js/libs/fluidbook/fluidbook.links.js +++ b/js/libs/fluidbook/fluidbook.links.js @@ -348,8 +348,13 @@ FluidbookLinks.prototype = { var animations = link.data('animations'); var $this = this; - var defaults = ['ease', 'duration']; + var defaults = ['ease', 'duration', 'delay']; var firstDefaults = {}; + + if (animations.length === 0) { + return; + } + $.each(defaults, function (k, v) { if (animations[0][v] !== undefined) { firstDefaults[v] = animations[0][v]; @@ -385,7 +390,7 @@ FluidbookLinks.prototype = { } var css = {}; - if (animation.ease == undefined) { + if (animation.ease === undefined) { animation.ease = "Power1.easeOut"; } to.ease = animation.ease; @@ -572,6 +577,7 @@ FluidbookLinks.prototype = { } if (tweenmax) { TweenMax.fromTo(linkElement, duration, from, to); + console.log('TweenMax.fromTo', duration, from, to); } this.fluidbook.networkControl.pause((to.delay + duration + 0.5) * 1000); }, -- 2.39.5