承接 romka-chev/yii2-swiper 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

romka-chev/yii2-swiper

最新稳定版本:v2.0.2

Composer 安装命令:

composer require romka-chev/yii2-swiper

包简介

Yii2 extension for Swiper slider

README 文档

README

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

You can find examples in 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.

统计信息

  • 总下载量: 40.56k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 18
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 18
  • Watchers: 3
  • Forks: 20
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-03