animations[0]['autostart'] = false;
}
- var autoStartThisAnim = true;
if (autostart && !animations[0]['autostart']) {
- autoStartThisAnim = false;
+ return;
}
$.each(defaults, function (k, v) {
}
$.each(animations, function (k, animation) {
- $this.executeAnimation(link, $.extend({}, firstDefaults, animation, override), autoStartThisAnim);
+ $this.executeAnimation(link, $.extend({}, firstDefaults, animation, override));
});
},
- executeAnimation: function (link, animation, autoStart) {
- if (autoStart === undefined) {
- autoStart = true;
- }
- if (autoStart) {
- $(link).data('animation-started', true);
- if ($(link).data('gsap') !== undefined && $(link).data('gsap') !== null) {
- $(link).data('gsap').play();
- return;
- }
- }
+ executeAnimation: function (link, animation) {
+ $(link).data('animation-started', true);
link = $(link);
var linkElement = $(link).get(0);
}
if (usegsap) {
to.duration = duration;
- var a = gsap.fromTo(animatedElement, from, to);
- if (!autoStart) {
- a.play()
- setTimeout(function () {
- a.pause().seek(0);
- }, 10);
- $(link).data('gsap', a);
- }
- }
- if (autoStart) {
- this.fluidbook.networkControl.pause((to.delay + duration + 0.5) * 1000);
+ gsap.fromTo(animatedElement, from, to);
}
+
+ this.fluidbook.networkControl.pause((to.delay + duration + 0.5) * 1000);
},
fixEase: function (ease) {