lanselot/yii2-parallax-widget

Wrapper for Yii2 from parallax.js by http://pixelcog.github.io

Installs: 368

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Language:JavaScript

Type:yii2-extension

0.0.1 2016-06-05 14:07 UTC

This package is not auto-updated.

Last update: 2024-09-28 19:37:25 UTC


README

wrapper for Yii2 from parallax.js by http://pixelcog.github.io

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist lanselot/yii2-parallax-widget "*"

or add

"lanselot/yii2-parallax-widget": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?= \lanselot\parallax\ParallaxWidget::widget([
    'image' => 'path/to/image.ext',
    'element' => '.class',
    'minHeight' => '400px',
]); ?>