]> _ Git - fluidbook_tools.git/commitdiff
#7457 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 8 Apr 2025 17:19:41 +0000 (19:19 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 8 Apr 2025 17:19:41 +0000 (19:19 +0200)
src/Links/NormalLink.php

index ae9a80478eabab36884a124e3d8981528a4a1ff7..ab670a12a704728e0981bb7afaab2298b4937d97 100644 (file)
@@ -52,7 +52,7 @@ class NormalLink extends Link
     /**
      * @throws \Exception
      */
-    public function getDisplayAreaLink($color, $opacity, $duration)
+    public function getDisplayAreaLink($color, $opacity, $duration, $delay = 0.5)
     {
         $animDuration = 0.4;
 
@@ -67,13 +67,13 @@ direction=right
 ease=power1.easeOut
 opacity=' . $opacity . '
 duration=' . $animDuration . '
-delay=0.5
+delay=' . $delay . '
 borderradius=' . ($this->compiler->getSetting('linksRoundedCorners', 0) * 2) . '
 ---------------
 type=fadeout
 ease=power1.easeOut
 duration=' . $animDuration . '
-delay=' . ($animDuration + $duration);
+delay=' . ($delay - 0.5 + $animDuration + $duration);
         return self::getInstance($init['id'], $init, $this->compiler);
     }