2017 © Pedro Peláez
 

yii2-extension yii2-slick-carousel

the last carousel you'll ever need

image

drmabuse/yii2-slick-carousel

the last carousel you'll ever need

  • Sunday, March 15, 2015
  • by brewing
  • Repository
  • 4 Watchers
  • 5 Stars
  • 3,824 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 8 Forks
  • 2 Open issues
  • 1 Versions
  • 2 % Grown

The README.md

yii2-slick

the Preview http://kenwheeler.github.io/slick/, (*1)

The yii2 widget to the fantastic slick-carousel. This widget generate you the only the javascript., (*2)

Installation Composer

drmabuse/yii2-slick-carousel:"*"

Installation Assets Bower

cd vendor/drmabuse/yii2-slick-carousel/web

bower install

Using


\drmabuse\slick\SlickWidget::widget([ 'container' => '.single-item', 'settings' => [ 'slick' => [ 'infinite' => true, 'slidesToShow' => 3, 'onBeforeChange'=> new \yii\web\JsExpression('function(){ }'), 'onAfterChange' => new \yii\web\JsExpression('function(){ console.debug(this); }'), 'responsive' => [ [ 'breakpoint'=> 768, 'settings'=> [ 'arrows'=> false, 'centerMode'=> true, 'centerPadding'=> 40, 'slidesToShow'=> 3 ] ] ], ], 'slickGoTo' => 3, ] ]); <div class="slider single-item"> <div><h3>1</h3></div> <div><h3>2</h3></div> <div><h3>3</h3></div> <div><h3>4</h3></div> <div><h3>5</h3></div> <div><h3>6</h3></div> </div>

The Versions

15/03 2015

dev-master

9999999-dev

the last carousel you'll ever need

  Sources   Download

MIT

The Requires

  • bower-asset/slick-carousel @stable

 

extension yii2 responsive js-carousel