Skip to content

1681-engine / index / ParallaxOptions

Interface: ParallaxOptions ​

Defined in: src/parallax/Parallax.ts:4

Properties ​

depth? ​

ts
optional depth?: number;

Defined in: src/parallax/Parallax.ts:10

Where the whole parallax sorts among the world layer's children (its zIndex, default -1000): below the level, so every layer stays behind it. A foreground layer (factor above 1) belongs in a second Parallax with a depth above the level's.

Released under the MIT License.