to.repeat = parseInt(animation.repeat);
var css = {};
- animation.ease = this.fixEase();
+ animation.ease = this.fixEase(animation.ease);
if (animation.rotate !== undefined) {
animation.rotation = animation.rotate;
}
}
if (usegsap) {
to.duration = duration;
+ console.log(to);
gsap.fromTo(linkElement, from, to);
}
this.fluidbook.networkControl.pause((to.delay + duration + 0.5) * 1000);
ease = 'none';
}
ease = ease.replace('.ease', '.');
+ ease = ease.replace('inout', 'inOut');
return ease;
},
this.transitionning = true;
var $this = this;
var turning = this.getTurningPages(pageNr);
- console.log(turning);
$("#pages").append('<div id="nextDoublePage" aria-hidden="true" class="doublePage _fade ' + turning.nextFromClass + '"></div>');
var doublePage = $("#nextDoublePage");
if (this.fluidbook.displayOnePage) {
}
var options = {
- domEvents: this.fluidbook.mobilefirst.enabled, touchAction: touchAction
+ domEvents: this.fluidbook.mobilefirst.enabled,
+ touchAction: touchAction
};
Hammer.defaults.domEvents = options.domEvents;
Hammer.defaults.touchAction = options.touchAction;
});
hmf.on('panstart', function (event) {
+ console.log(event);
if ($this.drag(event, 'start')) {
event.preventDefault();
}