Variable ParallaxConst

Parallax: ParallaxSingleton = ...

The main Parallax singleton instance. This is the primary API for interacting with the parallax system.

Example

import { Parallax } from 'parallax';

// Add an instance to the parallax system
Parallax.add(myInstance, {
horizontalSpeed: 0.5,
verticalSpeed: 0.3,
infiniteHorizontal: true
});

// Update the parallax system
Parallax.update(cameraX, cameraY);