return $res;
}
+ public function getDelay(): float
+ {
+ // Delay is managed by the animation engine
+ return 0;
+ }
+
protected function _isFinallyHidden($animations)
{
$hiddenAnimations = ['fadeout', 'unmask'];
public $cursor = '';
protected $role = 'button';
+
+ /** @var float */
+ public $delay = 0;
+
protected $_init;
public $relatedAnimation = '';
if ($this->tooltipColor) {
$res .= 'data-tooltip-color="' . $this->tooltipColor . '" ';
}
+ $delay = $this->getDelay();
+ if ($delay) {
+ $res .= 'data-delay="' . $delay . '" ';
+ }
return $res;
}
+ /**
+ * @return int
+ */
+ public function getDelay(): float
+ {
+ return max(0, (float)$this->delay);
+ }
+
public function getClasses()
{