var tweenFunctions = {};
var duration = 0.5;
var usegsap = true;
+ var initTransform = $(link).css('transform');
animation = $.extend({}, globalDefault, defaultParams, animation);
css.backgroundSize = '100% 100%';
css.backgroundPosition = animation.transformorigin;
} else {
- css.transform = 'scale(' + animation.scale + ')';
+ css.transform = initTransform + ' scale(' + animation.scale + ')';
css.transformOrigin = animation.transformorigin;
}
}
/**
* Rename animation direction name
*/
- if(!animation.direction) {
+ if (!animation.direction) {
animation.direction = 'right'
}
- if(animation.direction === 'top') {
+ if (animation.direction === 'top') {
animation.direction = 'up'
}
- if(animation.direction === 'bottom') {
+ if (animation.direction === 'bottom') {
animation.direction = 'down'
}
countup.start();
}, to.delay * 1000);
} else if (animation.type === 'draggable') {
- if(this.fluidbook===false){
+ if (this.fluidbook === false) {
return;
}
this.fluidbook.hasDraggableOnPage(true);