From c0e8761ab6eab5212c252109d916f4fe9579fccc Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Tue, 8 Apr 2025 19:19:41 +0200 Subject: [PATCH] #7457 @0.5 --- src/Links/NormalLink.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } -- 2.39.5