From: Vincent Vanwaelscappel Date: Tue, 8 Apr 2025 17:19:41 +0000 (+0200) Subject: #7457 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=c0e8761ab6eab5212c252109d916f4fe9579fccc;p=fluidbook_tools.git #7457 @0.5 --- diff --git a/src/Links/NormalLink.php b/src/Links/NormalLink.php index ae9a804..ab670a1 100644 --- a/src/Links/NormalLink.php +++ b/src/Links/NormalLink.php @@ -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); }