gevman / yii2-owl-carousel
Owl Carousel 2 for Widget Yii2
Installs: 201
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Type:package
Requires
- bower-asset/owl.carousel: ^2.3
- yiisoft/yii2: ~2.0.14
This package is auto-updated.
Last update: 2024-10-21 02:41:47 UTC
README
installation
using composer
gevman/yii2-owl-carousel
example of usage
echo \Gevman\OwlCarousel\OwlCarousel::widget([ 'elements' => [ Html::img(null, ['class' => 'owl-lazy', 'data' => ['src' => Yii::getAlias('@web/images/image-1.jpg')]]), Html::img(null, ['class' => 'owl-lazy', 'data' => ['src' => Yii::getAlias('@web/images/image-2.jpg')]]), Html::img(null, ['class' => 'owl-lazy', 'data' => ['src' => Yii::getAlias('@web/images/image-3.jpg')]]), ], 'config' => [ 'items' => 1, 'lazyLoad' => true, 'loop' => true, 'dots' => true, 'autoplay' => true, ] ]);
For more options check Owl Carousel 2 Official Docs