From: Vincent Vanwaelscappel Date: Thu, 24 Jul 2025 14:40:28 +0000 (+0200) Subject: . X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=e5882233de726b11bfdc915399cee6aab1fd3fc5;p=fluidbook_tools.git . --- diff --git a/src/Links/ContentLink.php b/src/Links/ContentLink.php index a16d6b3..0f1be6b 100644 --- a/src/Links/ContentLink.php +++ b/src/Links/ContentLink.php @@ -28,6 +28,7 @@ class ContentLink extends Link $res .= ' data-rollover-hide '; } if ($this->allowsAnimation) { + $animations = self::parseAnimations($this->image_rollover ?? 'none'); foreach ($animations as $animation) { if (isset($animation['quality']) && property_exists($this, 'maxzoom_default')) { @@ -144,7 +145,7 @@ class ContentLink extends Link protected function _isHiddenFirst($animations) { - $hiddenAnimations = ['reveal', 'fadein', 'translatefrom','keephidden']; + $hiddenAnimations = ['reveal', 'fadein', 'translatefrom', 'keephidden']; foreach ($animations as $animation) { if (isset($animation['type']) && in_array($animation['type'], $hiddenAnimations)) { return true;