IUseParallaxRuntimeOptions

interface
Parallax

TypeScript

Definition

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

typescript

API

Properties

Every property declared by this interface, with its type, optionality and default.

target
required
Ref<HTMLElement | undefined>
direction
required
Ref<TParallaxDirection>
easing
required
Ref<TParallaxEasing | string>
threshold
required
Ref<number>
disabled
required
Ref<boolean>
speed
required
Ref<number>
onEnter
() => void
onLeave
() => void
onProgress
(progress: number) => void