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];
}
var css = {};
- if (animation.ease == undefined) {
+ if (animation.ease === undefined) {
animation.ease = "Power1.easeOut";
}
to.ease = animation.ease;
}
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);
},