]> _ Git - fluidbook_tools.git/commitdiff
.
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 24 Jul 2025 14:40:28 +0000 (16:40 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 24 Jul 2025 14:40:28 +0000 (16:40 +0200)
src/Links/ContentLink.php

index a16d6b32f5f585b3cd019fb73a356c8428f53586..0f1be6bb47c104a14f94d7d75ff19baabd145208 100644 (file)
@@ -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;