dev-master
9999999-devYii2 wrapper for jaysalvat/vegas
MIT
The Requires
- yiisoft/yii2 *
- bower-asset/vegas 2.4.*
by ellotta
extension yii2 vegas yii2 vegas slider
Yii2 wrapper for jaysalvat/vegas
Yii2 wrapper for Vegas: a jQuery/Zepto plugin to add beautiful backgrounds and Slideshows to DOM elements, (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
composer require --dev ellotta/yii2-vegas "*"
or add, (*4)
"ellotta/yii2-vegas": "*"
to the require-dev section of your composer.json
file., (*5)
Once the extension is installed, simply use it in your code by :, (*6)
Vegas::widget([ 'selector' => 'body', //default selector 'jsOptions' => [ 'slides' => [ ['src' => 'https://dummyimage.com/800x600/000/ffffff.gif&text=1'], ['src' => 'https://dummyimage.com/800x600/000/ffffff.gif&text=2'], ['src' => 'https://dummyimage.com/800x600/000/ffffff.gif&text=3'], ], 'animation' => 'kenburnsUp', ], ]);
See plugin documentation for more information., (*7)
Yii2 wrapper for jaysalvat/vegas
MIT
extension yii2 vegas yii2 vegas slider