]> _ Git - fluidbook-html5.git/commitdiff
wip #3659 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 25 May 2020 11:19:29 +0000 (13:19 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 25 May 2020 11:19:29 +0000 (13:19 +0200)
js/libs/fluidbook/fluidbook.links.js

index 1dd477e4b1a95dd82e1140508ab23904990d70ed..363c3605bdb065ce8b8519eb1f3c432574ea1989 100644 (file)
@@ -287,7 +287,7 @@ FluidbookLinks.prototype = {
         var linkElement = $(link).get(0);
         var animation = link.data('animation');
         if (animation.type === undefined || animation.type === '') {
-            return;
+            animation.type = 'none';
         }
         var defaultParams = {};
         var globalDefault = {zindex: 0};
@@ -457,6 +457,8 @@ FluidbookLinks.prototype = {
                 link.css('opacity', 1);
                 countup.start();
             }, to.delay * 1000);
+        } else {
+            tweenmax = false;
         }
         css = $.extend({zIndex: 500 + parseInt(animation.zindex)}, css);
         console.log(css);