From f09e90a0459226457d7c34171f9c821a5046a59e Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Thu, 16 Jun 2022 14:55:11 +0200 Subject: [PATCH] wait #5322 @1 --- js/libs/fluidbook/fluidbook.links.js | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/js/libs/fluidbook/fluidbook.links.js b/js/libs/fluidbook/fluidbook.links.js index ef72ae08..70e94df7 100644 --- a/js/libs/fluidbook/fluidbook.links.js +++ b/js/libs/fluidbook/fluidbook.links.js @@ -690,6 +690,15 @@ FluidbookLinks.prototype = { if (animation.filter) { css.filter = animation.filter; } + if (animation.align) { + css.textAlign = animation.align; + } + if (animation.scale && ['scale', 'scalefrom', 'zoomin', 'zoomout'].indexOf(animation.type) === -1) { + css.transform = 'scale(' + animation.scale + ')'; + } + if (animation.letterspacing) { + css.letterspacing = parseFloat(animation.letterspacing); + } animation.ease = this.fixEase(animation.ease); if (animation.rotate !== undefined) { @@ -850,11 +859,9 @@ FluidbookLinks.prototype = { decimalseparator: '.', decimaldigitnumber: '0', separator: ' ', - align: 'left', letterspacing: '0', prefix: '', suffix: '', - scale: 1, }; animation = $.extend({}, globalDefault, defaultParams, animation); animation.startvalue = parseFloat(animation.startvalue.replace(/,/, '.')); @@ -876,12 +883,7 @@ FluidbookLinks.prototype = { } }; - css = { - textAlign: animation.align, - letterSpacing: animation.letterspacing, - opacity: 0, - transform: "scale(" + animation.scale + ")", - } + css['opacity'] = 0; var value = parseFloat(link.text().replace(/,/, '.')); link.text(''); -- 2.39.5