2017 © Pedro Peláez
 

yii2-extension yii2-bgswitcher-widget

This extension is a wrapper for the jQuery Background Image Switcher Plugin

image

raoul2000/yii2-bgswitcher-widget

This extension is a wrapper for the jQuery Background Image Switcher Plugin

  • Wednesday, October 29, 2014
  • by raoul2000
  • Repository
  • 2 Watchers
  • 1 Stars
  • 77 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Background Image Switcher

This extension is a wrapper for the jQuery Background Image Switcher Plugin, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

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

or add, (*4)

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

to the require section of your composer.json file., (*5)

Usage

Once the extension is installed, and assuming that our 3 images are stored in @webroot/images/background, simply use this code by :, (*6)

 '#targetId',
        'pluginOptions' => [
            'images' => [
                'images/background/image1.jpg',
                'images/background/image2.jpg',
                'images/background/image3.jpg',
                'http://placehold.it/350x150'   // this image is remote
            ]
        ]
    ]);
?>



some text here ... , (*7)

Below is an example of a CSS style to apply to the target container :, (*8)

.cover-bg {
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

For complete documentation please refer to the official BgSwitcher page. You may also have a look to the Github project page., (*9)

If this plugin did not convinced you, have a look to the Backstretch Plugin, (*10)

License

yii2-bgswitcher-widget is released under the BSD 3-Clause License. See the bundled LICENSE.md for details., (*11)

The Versions

29/10 2014

dev-master

9999999-dev

This extension is a wrapper for the jQuery Background Image Switcher Plugin

  Sources   Download

BSD-3-Clause

The Requires

 

plugin extension yii2 jquery image background

26/06 2014

1.0.0

1.0.0.0

This extension is a wrapper for the jQuery Background Image Switcher Plugin

  Sources   Download

BSD-3-Clause

The Requires

 

plugin extension yii2 jquery image background