wokster / yii2-owl-carousel-widget
Owl carousel for yii2
Installs: 389
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 1
Type:yii2-extension
Requires
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2025-03-01 00:22:08 UTC
README
Owl carousel for yii2
Based on https://owlcarousel2.github.io
DEMOS: https://owlcarousel2.github.io/OwlCarousel2/demos/demos.html
DOCS: https://owlcarousel2.github.io/OwlCarousel2/docs/started-welcome.html
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist wokster/yii2-owl-carousel-widget "*"
or add
"wokster/yii2-owl-carousel-widget": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
<?php \wokster\owlcarousel\OwlWidget::begin([ 'theme'=>'green', //can be "green","default", false (false by default) 'plaginOptions'=>[ 'loop' => true, 'margin' => 10, 'responsiveClass' => true, 'responsive' => [ 0 => ['items'=>1,'nav'=>true], 600 => ['items'=>3,'nav'=>true], 1000 => ['items'=>5,'nav'=>true], ], ] ]);?> <div> Your Content </div> <div> Your Content </div> <div> Your Content </div> <div> Your Content </div> <div> Your Content </div> <div> Your Content </div> <div> Your Content </div> <?php \wokster\owlcarousel\OwlWidget::end()?>