new ParallaxLayer(imagePath, scrollFactor)
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
imagePath | string | Path to background image. | |
scrollFactor | number | 0.5 | Scroll speed relative to camera (0 = fixed, 1 = normal, <1 = slower). |
- Source