$this->addLess('videojs/videojs');
}
+ public function addParallax()
+ {
+ $this->addJsLib('parallax', ['js/libs/fluidbook/fluidbook.parallax.js']);
+ }
+
public function addLottie($animationData, $params, $hash)
{
if (isset($this->_lottieIDByHash[$hash])) {
public $gamifyCoins = 0;
public $tooltipColor = null;
public $tooltipBackgroundColor = null;
+ public $parallax = 0;
protected $role = 'button';
protected $_init;
if ($this->tooltipColor) {
$res .= 'data-tooltip-color="' . $this->tooltipColor . '" ';
}
+ if ($this->parallax) {
+ $this->compiler->addParallax();
+ $res .= ' data-parallax="' . $this->parallax . '"';
+ }
return $res;
if (isset($animation['addzindex'])) {
$this->addzindex = $animation['addzindex'];
}
+ if (isset($animation['parallax'])) {
+ $this->parallax = $animation['parallax'];
+ unlink($animation['parallax']);
+ }
}
$res .= ' data-animations="' . htmlspecialchars(json_encode($animations), ENT_QUOTES) . '" ';
if ($this->_isHiddenFirst($animations)) {