public function getCSSZIndex()
{
- $zindex = $this->getAddZIndex() + (($this->getDepth() + 1) * 1000) - min(999, round(($this->width * $this->height) / 300));
+ $zindex = $this->getAddZIndex() + (($this->getDepth() + 1) * 1000) - min(999, round(999 * (($this->width * $this->height) / ($this->compiler->width * 2 * $this->compiler->height))));
return 'z-index:' . $zindex . ';';
}
class contentLink extends wsHTML5Link
{
public $defaultZIndex = 30;
- public $animZindex = 0;
public function getHTMLContainerClass()
{
unset($animation['blendmode']);
}
if (isset($animation['zindex'])) {
- $this->animZindex = $animation['zindex'];
+ $this->zindex = $animation['zindex'];
}
}
$res .= ' data-animations="' . htmlspecialchars(json_encode($animations), ENT_QUOTES) . '" ';
}
return false;
}
-
- public function getAddZIndex()
- {
- return parent::getAddZIndex() + $this->animZindex;
- }
}
class eventOverlayLink extends wsHTML5Link