Check GitHub for most recent updates https://github.com/linchpinstudios/yii2-backstretch ¶
Jquery backstretch widget for Yii2.
Backstretch Website: http://srobbin.com/jquery-plugins/backstretch/
Requirements ¶
Yii 2.*
Installation ¶
Composer: ¶
1) Add to your composer.json
"require": {
// ...
"linchpinstudios/yii2-backstretch": "*",
// ...
},
2) Run
php composer.phar update
Usage ¶
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'],
],
]);
good one
for me it worked this way. <?= linchpinstudios\backstretch\Backstrech::widget([ // 'duration' => 2000, // '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'], ], ]); ?>
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.