lanselot / yii2-parallax-widget
Wrapper for Yii2 from parallax.js by http://pixelcog.github.io
Installs: 369
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Language:JavaScript
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is not auto-updated.
Last update: 2025-02-01 21:30:47 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', ]); ?>