Download the PHP package dmstr/yii2-parallax without Composer
On this page you can find all versions of the php package dmstr/yii2-parallax. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package yii2-parallax
Yii2 Parallax
An extention to create AWESOME parallax effects.
Installation
The preferred way to install this extension is through composer.
Either run
or add
to the require section of your composer.json
file.
Usage
- Register desired asset bundle in view
- Set the x and y to define direction and velocity. An extra optional parameter (startCondition) tells the element when it should start moving. use "asap" to move the element as soon as the scroll event fires. Use "visible" (default value) for those elements that should move as soon they become visible in the viewport.
- Scroll to see the AWESOME effect.
[data-parallax="{x}, {y}, {when}"]
Example with 3 parallax elements
- TIP: try it with css transitions on transform to create nicer effect.
- TIP: to make realistic parallax effects, closer (alsor bigger) elements should move faster than elements tha are farther (also smaller).
Example widget usage
All versions of yii2-parallax with dependencies
PHP Build Version
Package Version
Requires
yiisoft/yii2 Version
*
The package dmstr/yii2-parallax contains the following files
Loading the files please wait ....