]> _ Git - fluidbook-html5.git/commitdiff
wait #7339 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 18 Feb 2025 12:20:47 +0000 (13:20 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 18 Feb 2025 12:20:47 +0000 (13:20 +0100)
js/libs/fluidbook/fluidbook.links.animations.js

index c94d5c878444e2ab7ce642f8e6708d97eea4360e..dbe1239f95e8d55e35496762d83006286d724edc 100644 (file)
@@ -90,7 +90,7 @@ FluidbookLinksAnimations.prototype = {
 
         var css = {};
         if (animation.borderradius) {
-            css.borderRadius = animation.borderradius+"px";
+            css.borderRadius = animation.borderradius + "px";
         }
         if (animation.filter) {
             css.filter = animation.filter;
@@ -212,6 +212,8 @@ FluidbookLinksAnimations.prototype = {
             to.visibility = 'visible';
             if (css.opacity !== undefined) {
                 from.opacity = css.opacity;
+            } else {
+                from.opacity = 0;
             }
             to.opacity = 1;
         } else if (animation.type === 'fadeout') {
@@ -447,11 +449,11 @@ FluidbookLinksAnimations.prototype = {
         return ease;
     },
 
-    finishAnimations:function(e){
+    finishAnimations: function (e) {
         if ($(e).data('gsap') == undefined) {
             return;
         }
-        $.each($(e).data('gsap'),function(k,a){
+        $.each($(e).data('gsap'), function (k, a) {
             a.totalProgress(1);
         });
     }