Skip to content

Types

UseScrollImageOptions ​

ts
type UseScrollImageOptions = Omit<ScrollImageOptions, "gl" | "element" | "scene">;

Defined in: use-scroll-image.ts:20

Options for useScrollImage. Everything from ScrollImageOptions except gl (taken from the provider), element (taken from the ref) and scene (a root Drawable is created for you).

onBeforeRender/onAfterRender may change between renders - the latest ones are always called. All other options are captured when the scene is created.