gevman/yii2-owl-carousel

Owl Carousel 2 for Widget Yii2

Maintainers

Package info

github.com/gevorgmansuryan/yii2-owl-carousel

Type:package

pkg:composer/gevman/yii2-owl-carousel

Statistics

Installs: 269

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 0

0.2.1 2018-04-10 12:19 UTC

This package is auto-updated.

Last update: 2026-02-21 05:18:16 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