lanselot / yii2-parallax-widget
Wrapper for Yii2 from parallax.js by http://pixelcog.github.io
Package info
github.com/LANSELOT/yii2-parallax-widget
Language:JavaScript
Type:yii2-extension
pkg:composer/lanselot/yii2-parallax-widget
0.0.1
2016-06-05 14:07 UTC
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2026-03-01 03:20:53 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', ]); ?>