PARALLAX_EASING

enum
Animation & Motion

TypeScript enum for Parallax easing curve — linear, ease-out, or spring physics.

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_EASING.LINEAR
No easing — the element moves at a constant rate relative to scroll.
PARALLAX_EASING.EASE_OUT
Deceleration easing — the element slows down as it reaches its target position.
PARALLAX_EASING.SPRING
Spring physics — the element overshoots slightly and settles with a natural bounce.

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