ustadev / yii2-lottie-player
Yii2 animation view
v1.0.1
2023-11-05 14:46 UTC
Requires
- php: >=7.1.0
- yiisoft/yii2: ^2.0.13
README
Install
composer require ustadev/yii2-lottie-player
Ishlatilishi
<div class="d-flex justify-content-center">
<?php
use ustadev\widgets\LottiePlayer;
echo LottiePlayer::widget([
'src' => 'https://assets7.lottiefiles.com/packages/lf20_tmsiddoc.json',
'options' => [
'style' => [
'width' => '400px',
],
]
]);
?>
</div>