From c4acd137c9e30a105d2504599f207d3d1c407175 Mon Sep 17 00:00:00 2001 From: "vincent@cubedesigners.com" Date: Tue, 25 Aug 2020 13:44:28 +0000 Subject: [PATCH] wip #3852 @0.5 --- inc/ws/Util/html5/master/class.ws.html5.links.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/inc/ws/Util/html5/master/class.ws.html5.links.php b/inc/ws/Util/html5/master/class.ws.html5.links.php index 0bd110895..bea98c796 100644 --- a/inc/ws/Util/html5/master/class.ws.html5.links.php +++ b/inc/ws/Util/html5/master/class.ws.html5.links.php @@ -793,10 +793,24 @@ class contentLink extends wsHTML5Link } } $res .= ' data-animations="' . htmlspecialchars(json_encode($animations), ENT_QUOTES) . '" '; + if($this->_isHiddenFirst($animations)){ + $res.=' data-animation-hide '; + } return $res; } + protected function _isHiddenFirst($animations) + { + $hiddenAnimations = ['reveal', 'unmask', 'fadein', 'translatefrom']; + foreach ($animations as $animation) { + if(in_array($animation['type'],$hiddenAnimations)){ + return true; + } + } + return false; + } + public function getCSSZIndex() { if ($this->zindex === 0) { -- 2.39.5