Reference Source

Parallax Module

A parallax module that will enable effortless integration of depth effects into your game.

Installation

ES Module

import { Parallax } from './parallax.mjs';

IIFE (Immediately Invoked Function Expression)

<script src="parallax.js"></script>;
// ...
window.ParallaxBundle.Parallax;

Global Dependency

Parallax relies on the VYLO variable being globally accessible.