public $tooltipColor = null;
public $tooltipBackgroundColor = null;
public $parallax = 0;
+ public $attachLeft = false;
protected $role = 'button';
protected $_init;
public function moveOnEvenPage()
{
- return false;
+ return $this->attachLeft;
}
public function getCSSContainer()
}
copy('https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js', $d . '/lottie-player.js');
- $htmlContent = '<html><head><script src="lottie-player.js"></script></head><body><lottie-player src="animation.json" background="transparent" speed="1" style="width: '.$a->w.'px; height: '.$a->h.'px;" autoplay loop></lottie-player></body></html>';
+ $htmlContent = '<html><head><script src="lottie-player.js"></script></head><body><lottie-player src="animation.json" background="transparent" speed="1" style="width: ' . $a->w . 'px; height: ' . $a->h . 'px;" autoplay loop></lottie-player></body></html>';
file_put_contents($d . '/index.html', $htmlContent);
file_put_contents($d . '/animation.json', $json);