承接 raoul2000/yii2-backstretch-widget 相关项目开发

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

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

raoul2000/yii2-backstretch-widget

最新稳定版本:1.0.1

Composer 安装命令:

composer require raoul2000/yii2-backstretch-widget

包简介

Wrapper around the Backstretch JQuery plugin

README 文档

README

This yii2 extension is a wrapper around the jQuery Backstretch Plugin.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist raoul2000/yii2-backstretch-widget "*"

or add

"raoul2000/yii2-backstretch-widget": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code like for instance in the examples below.

Start a slideshow on the background of element #elementId.

Note that the images are defined as local or remote. The second argument of pluginOptions contains the plugin initialization settings that can be redefined if the default ones are not what you want.

	raoul2000\widget\backstretch\Backstretch::widget([
		'selector' => '#elementId',
		'pluginOptions' => [
			[
				'path/to/image1.jpg',
				'http://hostname1/path/to/image2.jpg',
				'http://hostname2/path/to/image3.jpg'
			],
			[
				'duration' => 3000,
				'fade' => 'slow',
				'centeredX' => true,
				'centeredY' => true
			]
		]
	]);

To attach Backstretch as the body's background

In its simplest form, attach an image to the background of the body element. Default settings are used to initialize the plugin.

	raoul2000\widget\backstretch\Backstretch::widget([
		'pluginOptions' => 'path/to/image1.jpg'
	]);

For complete documentation please refer to the jquery-backstretch Github page

If this plugin did not convinced you, have a look to the Background Switcher Plugin

License

yii2-backstretch-widget is released under the BSD 3-Clause License. See the bundled LICENSE.md for details.

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 3
  • Forks: 0
  • 开发语言: HTML

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2014-10-28

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固