romka-chev/yii2-swiper Yii2 extension for Swiper slider

extensionwidgetsliderswiper

Yii2-swiper Coverage 100% License MIT

Yii2 widget for Swiper slider. See more here: https://github.com/nolimits4web/Swiper/.

You can find examples in https://github.com/romka-chev/yii2-swiper/blob/master/demos folder.

Also you can read documentation.

Installation

You can get this extension through Composer.

Either run in terminal

$ php composer.phar require "romka-chev/yii2-swiper" "*"

or add

"romka-chev/yii2-swiper" : "*"

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

Usage


<?php
/**
 * @var \yii\web\View $this
 */
use romkaChev\yii2\swiper\Swiper;

echo Swiper::widget( [
  'items'         => [
    [ 'background' => 'http://lorempixel.com/600/600/nature/1' ],
    [ 'background' => 'http://lorempixel.com/600/600/nature/2' ],
    [ 'background' => 'http://lorempixel.com/600/600/nature/3' ],
    [ 'background' => 'http://lorempixel.com/600/600/nature/4' ],
    [ 'background' => 'http://lorempixel.com/600/600/nature/5' ]
  ],
  'behaviours'    => [
    'pagination'
  ],
  'pluginOptions' => [
    'grabCursor'     => true,
    'centeredSlides' => true,
    'slidesPerView'  => 'auto',
    'effect'         => 'coverflow',
    'coverflow'      => [
        'rotate'       => 50,
        'stretch'      => 0,
        'depth'        => 100,
        'modifier'     => 1,
        'slideShadows' => true
    ]
  ]
] );

Issues

If some problems occurred, you can create issue.

Thank you for attention.

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



v2.0.2 is the latest of 9 releases



MIT license
Stats
18 github stars & 19 github forks
12 downloads in the last day
206 downloads in the last 30 days
39919 total downloads