From: soufiane Date: Tue, 22 Oct 2024 13:55:45 +0000 (+0200) Subject: wait #7148 @0:05 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=fb250f7566b0513c93064ce5c503513e1e5057d7;p=fluidbook-html5.git wait #7148 @0:05 --- diff --git a/js/libs/fluidbook/fluidbook.links.animations.js b/js/libs/fluidbook/fluidbook.links.animations.js index 197646da..526c8209 100644 --- a/js/libs/fluidbook/fluidbook.links.animations.js +++ b/js/libs/fluidbook/fluidbook.links.animations.js @@ -216,6 +216,20 @@ FluidbookLinksAnimations.prototype = { var left = 0; var rectinit = 'rect(0px,' + w + 'px,' + h + 'px,0px)'; + + /** + * Rename animation direction name + */ + if(!animation.direction) { + animation.direction = 'right' + } + if(animation.direction === 'top') { + animation.direction = 'up' + } + if(animation.direction === 'bottom') { + animation.direction = 'down' + } + if ((animation.direction === 'left' && animation.type === 'unmask') || (animation.direction === 'right' && animation.type === 'reveal')) { right = 0; } else if ((animation.direction === 'right' && animation.type === 'unmask') || (animation.direction === 'left' && animation.type === 'reveal')) {