dynamikaweb / yii2-tiny-slider
Vanilla slider inspired by Owl Carousel
Installs: 2 868
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Type:yii2-extension
Requires
- php: >=7.0
- npm-asset/tiny-slider: *
- yiisoft/yii2: *
Replaces
README
Documentation
Installation
The preferred way to install this extension is through composer.
Either run
$ composer require dynamikaweb/yii2-tiny-slider "*"
or add
"dynamikaweb/yii2-tiny-slider": "*"
to the require
section of your composer.json
file.
How to use
<?PHP use dynamikaweb\tiny\Slider; use yii\helpers\Html; ?> <?php Slider::begin([ 'pluginOptions' => [ 'autoplay' => true, 'autoplayTimeout' => 3000, 'items' => 1 ] ])?> <?=Html::img('foo.png')?> <?=Html::img('bar.png')?> <?=Html::img('zee.png')?> <?php Slider::end()?>
Configuration
This project is under BSD-3-Clause license.