PARALLAX_EVENT

enum
Animation & Motion

TypeScript enum for the browser event driving the Parallax effect — mouse move, scroll, or device orientation.

TypeScript

Definition

The TypeScript definition as found in the origam source. Click the copy icon to copy the snippet.

typescript

Members

Members

All members of this enum. Click a value to copy it to clipboard.

PARALLAX_EVENT.MOVE
Effect is driven by the mousemove event — element tracks the pointer position.
PARALLAX_EVENT.SCROLL
Effect is driven by the scroll event — element moves with page scroll progress.
PARALLAX_EVENT.ORIENTATION
Effect is driven by the deviceorientation event — element reacts to gyroscope tilt (mobile).

Ecosystem

Used by

Components and props that accept this enum as a value.

Usage

Examples

Ready-to-paste code snippets using this enum.

Using the enum in script setup

typescript