Yii2-Backstretch
Jquery backstretch widget for Yii2., (*1)
Backstretch Website: http://srobbin.com/jquery-plugins/backstretch/, (*2)
Installation
Composer:
1) Add to your composer.json
"require": {
// ...
"linchpinstudios/yii2-backstretch": "*",
// ...
},
2) Run
php composer.phar update
Usage
1) Include Widget at top of page
use linchpinstudios/backstretch;
2) Call Widget
<?php
echo Backstrech::widget([
'duration' => 3000,
'fade' => 750,
'clickEvent' => false,
'images' => [
['image' => 'http://dl.dropbox.com/u/515046/www/outside.jpg'],
['image' => 'http://dl.dropbox.com/u/515046/www/garfield-interior.jpg'],
['image' => 'http://dl.dropbox.com/u/515046/www/cheers.jpg'],
],
]);
?>