From 0373b3d63f1a2c47769aca1e83a0d59c7c284b81 Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 14 Feb 2025 13:14:36 +0100 Subject: [PATCH] #7241 --- src/Links/NormalLink.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Links/NormalLink.php b/src/Links/NormalLink.php index 549d2c9..ae9a804 100644 --- a/src/Links/NormalLink.php +++ b/src/Links/NormalLink.php @@ -54,6 +54,8 @@ class NormalLink extends Link */ public function getDisplayAreaLink($color, $opacity, $duration) { + $animDuration = 0.4; + $init = $this->_init; $init['type'] = self::COLOR; $init['to'] = $color; @@ -64,14 +66,14 @@ class NormalLink extends Link direction=right ease=power1.easeOut opacity=' . $opacity . ' -duration=' . $duration . ' +duration=' . $animDuration . ' delay=0.5 -borderRadius=' . ($this->compiler->getSetting('linksRoundedCorners', 0) * 2) . ' +borderradius=' . ($this->compiler->getSetting('linksRoundedCorners', 0) * 2) . ' --------------- type=fadeout ease=power1.easeOut -duration=' . $duration . ' -delay=' . ($duration + 0.5); +duration=' . $animDuration . ' +delay=' . ($animDuration + $duration); return self::getInstance($init['id'], $init, $this->compiler); } -- 2.39.5