},
initAnimatedContentsLinks: function () {
+ var fluidbook = this.fluidbook;
+ var pauseNetworkDelay = 0;
$(".contentLink[data-animation]").each(function () {
var animation = $(this).data('animation');
if (animation.type === undefined || animation.type === '') {
animation.decimalDigitNumber = parseInt(animation.decimalDigitNumber);
animation.letterSpacing = parseFloat(animation.letterSpacing);
+ var ea = to.ease.split('.');
+ var ease = window[ea[0]][ea[1]];
+
var options = {
+ duration: duration,
useEasing: true,
useGrouping: true,
separator: animation.separator,
prefix: animation.prefix,
suffix: animation.suffix,
easingFn: function (t, b, c, d) {
- var ea = to.ease.split('.');
- return b + window[ea[0]][ea[1]].getRatio(t / d) * c
+ return b + ease.getRatio(t / d) * c
}
};
countup.start();
}, to.delay * 1000);
}
-
+ pauseNetworkDelay = Math.max(pauseNetworkDelay, to.delay + duration);
$(this).show();
if (tweenmax) {
TweenMax.fromTo($(this), duration, from, to);
}
});
+
+ this.fluidbook.pauseNetwork((pauseNetworkDelay + 1) * 1000)
},
getLinkDataById: function (uid) {