]> _ Git - fluidbook_tools.git/commitdiff
wip #7647 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 17 Jul 2025 16:17:05 +0000 (18:17 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 17 Jul 2025 16:17:05 +0000 (18:17 +0200)
src/Links/ContentLink.php
src/Links/NormalLink.php

index b23dbafc727a7f8c3e8d8e6fd80038963a854656..a16d6b32f5f585b3cd019fb73a356c8428f53586 100644 (file)
@@ -144,7 +144,7 @@ class ContentLink extends Link
 
     protected function _isHiddenFirst($animations)
     {
-        $hiddenAnimations = ['reveal', 'fadein', 'translatefrom'];
+        $hiddenAnimations = ['reveal', 'fadein', 'translatefrom','keephidden'];
         foreach ($animations as $animation) {
             if (isset($animation['type']) && in_array($animation['type'], $hiddenAnimations)) {
                 return true;
index ca5f4025e4e0a6812cd5fbac5c82533239518430..6d574889091d6b6d503cdbb7c1c7a6919f7c952f 100644 (file)
@@ -88,10 +88,8 @@ ease=power1.easeOut
 duration=' . $animDuration . '
 delay=' . ($delay - 0.5 + $animDuration + $duration);
         } else if ($this->getAnimationType() === 'none') {
-            $init['image_rollover'] = 'type=fadeout
-ease=power1.easeOut
-duration=0
-delay=0
+            $init['image_rollover'] = 'type=keephidden
+duration=0.5
 borderradius=' . ($this->compiler->getSetting('linksRoundedCorners', 0) * 2);
         }