]> _ Git - fluidbook-html5.git/commitdiff
wip #7650 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 21 Jul 2025 16:27:14 +0000 (18:27 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 21 Jul 2025 16:27:14 +0000 (18:27 +0200)
js/libs/fluidbook/fluidbook.links.animations.js

index bef8a2d99687751c8bfa2e6238be433f3cd17d3b..ea1fe562de0312f3368fa6fa6d35e1e0832ee656 100644 (file)
@@ -210,12 +210,12 @@ FluidbookLinksAnimations.prototype = {
             from.display = 'none';
             to.display = 'block';
             to.visibility = 'visible';
+            from.opacity = 0;
             if (css.opacity !== undefined) {
-                from.opacity = css.opacity;
+                to.opacity = css.opacity;
             } else {
-                from.opacity = 0;
+                to.opacity = 1;
             }
-            to.opacity = 1;
         } else if (animation.type === 'fadeout') {
             if (css.opacity !== undefined) {
                 from.opacity = css.opacity;