From: Vincent Vanwaelscappel Date: Thu, 17 Jul 2025 16:17:05 +0000 (+0200) Subject: wip #7647 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=5d167e41960df67ce94c84d3259b836b63f93a3d;p=fluidbook_tools.git wip #7647 @0.5 --- diff --git a/src/Links/ContentLink.php b/src/Links/ContentLink.php index b23dbaf..a16d6b3 100644 --- a/src/Links/ContentLink.php +++ b/src/Links/ContentLink.php @@ -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; diff --git a/src/Links/NormalLink.php b/src/Links/NormalLink.php index ca5f402..6d57488 100644 --- a/src/Links/NormalLink.php +++ b/src/Links/NormalLink.php @@ -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); }