Skip to content

drtsb/yii2-reeljs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yii2-reeljs

Renders a jQuery Reel plugin widget

Installation

The preferred way to install this extension is through composer.

Either run

composer require bastardijke/yii2-reeljs:*

or add

"bastardijke/yii2-reeljs" : "*"

to the require section of your application's composer.json file.

Usage

Please, check jQuery Reel documentation for the different options supported by the plugin.

use bastardijke\reeljs\ReelJs;

$imageList = [
	'images/1.jpg',
	'images/2.jpg',
	'images/3.jpg',
	'images/4.jpg',
];

<?= ReelJs::widget([
    'options' => [
        'src' => $imageList[0], // Required. Source for first image.
    ],
    'clientOptions' => [
        'images' => implode( ',' , $imageList ),
        'speed' => 0.3,
        'shy' => "true",
    ], 
]);
?>

About

jQuery Reel plugin for Yii2 Framework

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages