@neshel-ui/animations/scroll
Every export of @neshel-ui/animations/scroll, generated from its declarations.
Experimental and not on npm
Signatures, members and defaults, generated from the built declarations. For explanations and examples read the guide. Scroll-linked effects: Scroll & Parallax.
HorizontalScrollcomponent({ layout, label, trackClassName, className, style, ref, children, onFocus, ...rest }: HorizontalScrollProps): ElementParallaxImagecomponentSP06: a clipping frame (`<div>` or `asChild`) whose first element child (img/video/picture) moves.
({ amount, reducedMotion, asChild, className, ref, children, ...rest }: ParallaxImageProps): ElementRevealOnScrollcomponentST01: plays an Entrance preset when the element enters the viewport (hydrated content is not hidden).
(props: RevealOnScrollProps): ElementScrollEffectcomponentAny scroll-family effect on a `<div>` (or `asChild`); inside a `<ScrollScene>` it follows the scene.
({ preset, options, asChild, conflicts, className, ref, children, ...rest }: ScrollEffectProps): ElementScrollLayercomponentSP01: a depth layer of the nearest `<ScrollScene>` (or of its own viewport range outside a scene).
({ depth, distance, axis, reducedMotion, ...props }: ScrollLayerProps): ElementScrollProgressBarcomponentSP03: decorative reading-progress bar (`aria-hidden`); the browser's scrollbar stays the real control.
({ source, position, driver, className, ref, ...rest }: ScrollProgressBarProps): ElementScrollScenecomponentSP05: a tall `<section>` whose stage is pinned with CSS `position: sticky` (no JS spacer). Writes `--neshel-scene-progress` (0–1) on the section and shares its timeline with `<ScrollLayer>` and `<ScrollEffect>` children (`useScrollScene()`).
({ length, smooth, driver, range, reducedMotion, stageClassName, className, style, ref, children, ...rest }: ScrollSceneProps): ElementStaggerOnScrollcomponentST02: plays the Entrance `stagger` on the children when the container enters the viewport.
(props: RevealOnScrollProps): ElementStickyStackcomponentSP09: each child is wrapped in a sticky card slot whose index is in the server markup.
({ top, offset, scale, reducedMotion, className, style, ref, children, ...rest }: StickyStackProps): ElementcolorAtfunctionColour at progress `p` between stops (stepped when `step`).
(stops: readonly string[], space: string, p: number, step: boolean): stringcoveredScalefunctionScale of a card `index` of `count` at stack progress `p` (equal-slot model, documented).
(index: number, count: number, p: number, scale: number): numbercreateScrollProgressfunction(options?: ScrollProgressOptions | undefined): ScrollProgresscreateScrollTriggerfunction(element: Element, options?: ScrollTriggerOptions | undefined): ScrollTriggercreateSectionSpyfunction(sections: readonly Element[], options?: SectionSpyOptions | undefined): SectionSpygetScrollDebugInfofunctionSnapshot of the scroll engine counters.
(): ScrollDebugInfonativeScrollAvailablefunctionWhether the APIs of the native driver exist (behaviour is checked per animation).
(): booleanobserveInViewfunctionObserve `element` against a trigger area; returns the unobserve function.
(element: Element, input: InViewInput | undefined, listener: Listener): () => voidrefreshScrollfunctionRe-measure every scroll timeline, trigger and effect (for changes the observers cannot see).
(): voidresolveInViewfunctionValidate and normalise a trigger (preset name or options).
(input: InViewInput | undefined, owner?: string | undefined): ResolvedInViewuseInViewfunctionWhether `ref`'s element is inside the trigger area (state changes only on enter/leave).
(ref: RefObject<Element | null>, trigger?: InViewInput | undefined): booleanuseScrollProgressfunctionA timeline for `ref`'s element (its view range) or, with `ref` omitted/null, for the page. Created after mount (one render); never re-renders per frame — read it in effects or subscribe.
(ref?: RefObject<Element | null> | null | undefined, options?: Omit<ScrollProgressOptions, "subject"> | undefined): ScrollProgress | undefineduseScrollScenefunctionThe nearest `<ScrollScene>`'s timeline (`undefined` outside a scene or before it mounted).
(): ScrollProgress | undefineduseScrollTriggerfunctionST04: trigger state of `ref`'s element; callbacks are read from the latest render.
(ref: RefObject<Element | null>, options?: ScrollTriggerOptions | undefined): TriggerStateuseSectionSpyfunctionST08: id of the active section among `ids` (state changes only when the section changes).
(ids: readonly string[], options?: SectionSpyHookOptions | undefined): string | undefineddepthParallaxconstEffectDefinition<DepthParallaxOptions, ResolvedProgress & { extra: { depth: number; distance: number; axis: "x" | "y"; }; }>directionHeaderconstST06 — hides a sticky/fixed header (transform layer `translateY(−height)`) while scrolling forward past `offset`; shows it on backward scroll, near the top and while focus is inside it (keyboard users never lose a hidden header). `data-neshel-header="hidden"` while hidden. Height is measured on invalidation.
Readonly<EffectDefinition<DirectionHeaderOptions, ResolvedHeader>>imageParallaxconstEffectDefinition<ImageParallaxOptions, ResolvedProgress & { extra: { amount: number; frame: Element | undefined; }; }>inViewPresetsconstST10 — named trigger areas (contracts/api-011.md §1).
Readonly<{ default: Readonly<{ rootMargin: "0px 0px -10% 0px"; threshold: 0; }>; eager: Readonly<{ rootMargin: "0px 0px 25% 0px"; threshold: 0; }>; lazy: Readonly<{ rootMargin: "200% 0px 200% 0px"; threshold: 0; }>; center: Readonly<{ rootMargin: "-45% 0px -45% 0px"; threshold: 0; }>; half: Readonly<{ rootMargin: "0px"; threshold: 0.5; }>; full: Readonly<{ rootMargin: "0px"; threshold: 0.99; }>; top: Readonly<{ rootMargin: "0px 0px -85% 0px"; threshold: 0; }>; }>inViewProgressconstST05 — `--neshel-view-progress` (0–1) while the element crosses the viewport; `1` under reduced motion.
EffectDefinition<PropertyProgressOptions, ResolvedProgress & { extra: { driver: DriverPreference; }; }>lazyEffectconstReadonly<EffectDefinition<LazyEffectOptions, ResolvedLazy>>pinnedSceneconstSP05: `--neshel-scene-progress` (0–1) over the pinned span of a tall section (`contain` range: from its top reaching the viewport top to its bottom reaching the viewport bottom). Pinning itself is CSS sticky (`.neshel-scene-stage`). Reduced motion keeps the variable and adds the `scene` token to `data-neshel-fx-reduced` so decor can freeze.
EffectDefinition<PropertyProgressOptions, ResolvedProgress & { extra: { driver: DriverPreference; }; }>revealOnEnterconstST01 — play an Entrance preset when the element enters the trigger area.
Readonly<EffectDefinition<RevealOnEnterOptions, ResolvedReveal>>scrollColorShiftconstEffectDefinition<ScrollColorShiftOptions, ResolvedProgress & { extra: ColorExtra; }>scrollEffectsconstScroll & Parallax definitions in catalogue order (SP01–SP03, SP05–SP09, SP11), for registries.
readonly AnyEffectDefinition[]scrollProgressconstSP03: `--neshel-scroll-progress` (0–1) of the page (or `source`) on the element.
EffectDefinition<PropertyProgressOptions, ResolvedProgress & { extra: { driver: DriverPreference; }; }>scrollTriggerEffectsconstScroll Trigger definitions in catalogue order (ST01, ST02, ST05, ST06, ST07, ST09), for registries.
readonly AnyEffectDefinition[]scrubTransformconstEffectDefinition<ScrubTransformOptions, ResolvedProgress & { extra: { from: Required<ScrubPose>; to: Required<ScrubPose>; easing: Easing; }; }>staggerOnEnterconstST02 — play the E10 `stagger` (children) when the container enters the trigger area.
Readonly<EffectDefinition<RevealOnEnterOptions, ResolvedReveal>>stickyStackconstSP09: attached to a container whose element children are the cards. Each child gets `--neshel-stack-index` (scroll.css offsets its sticky `top`) and, unless `scale: 0`, a covered-card scale layer driven by the container's `contain` progress (exact for equal-height cards). Without JavaScript `<StickyStack>` renders the index inline, so stacking works from the server markup.
EffectDefinition<StickyStackOptions, ResolvedProgress & { extra: { scale: number; }; }>stuckStateconstST07 — `data-neshel-stuck` while a `position: sticky` element (block-start offset `top`) is pinned. An IntersectionObserver with `rootMargin: -(top + 1)px 0 0 0` and thresholds 0/1 reports the pinned edge (no sentinel element); the release point (bottom of the containing block) comes from cached geometry and the source position, so scrolling reads no layout.
Readonly<EffectDefinition<StuckStateOptions, ResolvedStuck>>velocitySkewconstReadonly<EffectDefinition<VelocitySkewOptions, ResolvedSkew>>zoomOnScrollconstEffectDefinition<ZoomOnScrollOptions, ResolvedProgress & { extra: { from: number; to: number; easing: Easing; }; }>DepthParallaxOptionsinterfaceDepthParallaxOptions
DepthParallaxOptions Prop Type Default Description axis "x" | "y""y"Movement axis (default "y").depth number— Speed factor: positive moves against the scroll (foreground), negative lags (background). −5…5, default 1. distance number— Travel at depth 1 over the whole range, px (0–2000, default 200). range readonly [RangeInput, RangeInput]— Range of the effect's own timeline (ignored with timeline).reducedMotion ReducedMotion— — scrollAxis ScrollAxis"block"Scroll axis of the effect's own timeline (default "block").smooth boolean | SpringOptions | SpringPreset— SP10 spring smoothing of the effect's own timeline. source Element | Window | null— Scroll container of the effect's own timeline (default: the root scroller). timeline ScrollProgress— A shared timeline (e.g. from useScrollScene()); otherwise the effect creates one.DirectionHeaderOptionsinterfaceDirectionHeaderOptions
DirectionHeaderOptions Prop Type Default Description duration number220Slide duration in ms (default 220). offset number— Never hide above this scroll offset, px (0–2000, default 80). onChange (hidden: boolean) => void— — reducedMotion ReducedMotion— — source Element | Window | null— — tolerance number— Scroll distance in one direction before toggling, px (0–400, default 12). HorizontalScrollPropsinterfaceHorizontalScrollProps
HorizontalScrollProps Prop Type Default Description children ReactNode— — label string— Accessible name of the region (recommended). layout HorizontalLayout— "auto"(default) and"pinned": pinned when the track overflows (else a native scroller), stacked whenever motion is reduced (live)."stacked": always vertical."scroll": always a native horizontal scroller (user-driven, kept under reduced motion).ref Ref<HTMLElement>— — trackClassName string— — Also accepts the props of: React DOM attributes.
ImageParallaxOptionsinterfaceImageParallaxOptions
ImageParallaxOptions Prop Type Default Description amount number— Travel each way in px (0–400, default 48). The media is scaled to keep the frame covered. frame Element— The clipping frame (default: the element's parent). range readonly [RangeInput, RangeInput]— Range of the effect's own timeline (ignored with timeline).reducedMotion ReducedMotion— — scrollAxis ScrollAxis"block"Scroll axis of the effect's own timeline (default "block").smooth boolean | SpringOptions | SpringPreset— SP10 spring smoothing of the effect's own timeline. source Element | Window | null— Scroll container of the effect's own timeline (default: the root scroller). timeline ScrollProgress— A shared timeline (e.g. from useScrollScene()); otherwise the effect creates one.InViewOptionsinterfaceInViewOptions
InViewOptions Prop Type Default Description root Element | null— Intersection root; omitted or null→ the viewport.rootMargin string— CSS margin around the root (px or %), as in IntersectionObserver. threshold number | readonly number[]— — InViewReportinterfaceInViewReport
InViewReport Prop Type Default Description bottom(required) number— — inView(required) boolean— — position(required) InViewPosition— after: the element left through the start edge (scrolled past).ratio(required) number— — top(required) number— Element box edges relative to the viewport at the report (free from the observer entry). LazyEffectOptionsinterfaceLazyEffectOptions
LazyEffectOptions Prop Type Default Description keepAlive boolean— Keep the effect attached after it first activates (default false: destroy when far). onActiveChange (active: boolean) => void— — options Record<string, unknown>— — preset(required) AnyPreset— Any effect definition or preset (Tilt3D-like heavy effects, …). trigger InViewInput"lazy"Activation area (default "lazy": two viewports around the viewport).ParallaxImagePropsinterfaceParallaxImageProps
ParallaxImageProps Prop Type Default Description amount number48Travel each way, px (default 48). asChild boolean— Apply to the single child element instead of rendering a <div>.children ReactNode— — conflicts ConflictPolicy— Conflict reporting for exclusive channels (default: warn in development). reducedMotion ReducedMotion— — ref Ref<HTMLDivElement>— — Also accepts the props of: React DOM attributes.
ProgressOptionsinterfaceProgressOptions
Options shared by every progress-driven effect.
ProgressOptions Prop Type Default Description range readonly [RangeInput, RangeInput]— Range of the effect's own timeline (ignored with timeline).reducedMotion ReducedMotion— — scrollAxis ScrollAxis"block"Scroll axis of the effect's own timeline (default "block").smooth boolean | SpringOptions | SpringPreset— SP10 spring smoothing of the effect's own timeline. source Element | Window | null— Scroll container of the effect's own timeline (default: the root scroller). timeline ScrollProgress— A shared timeline (e.g. from useScrollScene()); otherwise the effect creates one.PropertyProgressOptionsinterfacePropertyProgressOptions
PropertyProgressOptions Prop Type Default Description driver DriverPreference— "auto"(default): native scroll timeline when verified, else JS.range readonly [RangeInput, RangeInput]— Range of the effect's own timeline (ignored with timeline).reducedMotion ReducedMotion— — scrollAxis ScrollAxis"block"Scroll axis of the effect's own timeline (default "block").smooth boolean | SpringOptions | SpringPreset— SP10 spring smoothing of the effect's own timeline. source Element | Window | null— Scroll container of the effect's own timeline (default: the root scroller). timeline ScrollProgress— A shared timeline (e.g. from useScrollScene()); otherwise the effect creates one.ResolvedInViewinterfaceResolvedInView
ResolvedInView Prop Type Default Description root(required) Element | null— — rootMargin(required) string— — threshold(required) number[]— — RevealOnEnterOptionsinterfaceRevealOnEnterOptions
RevealOnEnterOptions Prop Type Default Description initial "hold" | "visible"— "hold"(default for imperative attachment): hide the start pose now, before paint."visible": keep the element as rendered until the first report (hydrated server markup).mode TriggerMode— ST03: "once"(default),"repeat"(re-arm on every leave) or"reverse"(play out on leave-back).onEnter () => void— ST04 callbacks. onEnterBack () => void— — onLeave () => void— — onLeaveBack () => void— — options Record<string, unknown>— Options merged over the preset's ( appear,hold,replay,playbackare managed).preset(required) AnyPreset— An Entrance definition or preset ( fadeUp,clipCircle, …; for ST02 thestaggereffect).reducedMotion ReducedMotion— — trigger InViewInput"default"Trigger area: an inViewPresetsname or{ rootMargin, threshold, root }(default"default").RevealOnScrollPropsinterfaceRevealOnScrollProps
RevealOnScrollProps Prop Type Default Description asChild boolean— Apply to the single child element instead of rendering a <div>.children ReactNode— — conflicts ConflictPolicy— Conflict reporting for exclusive channels (default: warn in development). mode TriggerMode— — onEnter () => void— — onEnterBack () => void— — onLeave () => void— — onLeaveBack () => void— — options Record<string, unknown>— Options merged over the preset's. preset(required) AnyPreset— Entrance definition or preset ( fadeUp, …); for<StaggerOnScroll>thestaggereffect/preset.reducedMotion ReducedMotion— — ref Ref<HTMLDivElement>— — trigger InViewInput— — Also accepts the props of: React DOM attributes.
ScrollColorShiftOptionsinterfaceScrollColorShiftOptions
ScrollColorShiftOptions Prop Type Default Description range readonly [RangeInput, RangeInput]— Range of the effect's own timeline (ignored with timeline).reducedMotion ReducedMotion— — scrollAxis ScrollAxis"block"Scroll axis of the effect's own timeline (default "block").smooth boolean | SpringOptions | SpringPreset— SP10 spring smoothing of the effect's own timeline. source Element | Window | null— Scroll container of the effect's own timeline (default: the root scroller). space "oklab" | "oklch" | "srgb""oklab"Interpolation space of color-mix()(default"oklab").stops(required) readonly string[]— Two or more CSS colours (at most 8). themeTarget Element— Element receiving data-neshel-theme(default: the element).themes readonly string[]— Optional theme names (one per stop) written to data-neshel-themeonthemeTarget.timeline ScrollProgress— A shared timeline (e.g. from useScrollScene()); otherwise the effect creates one.ScrollDebugInfointerfaceScrollDebugInfo
Scroll engine counters (contracts/scroll-engine.md §6). Plain numbers, no allocation per frame; tests and the browser lab read them to prove, for example, that scrolling never triggers a geometry measurement.
ScrollDebugInfo Prop Type Default Description activeTimelines(required) number— Timelines currently subscribed to their source. lastFallback { native: number | null; expected: number; property: string; }— Last behavioural-check failure: native progress ( null= inactive) vs the JS model.measurements(required) number— Geometry measurements (one per timeline per invalidation pass). nativeAnimations(required) number— Live native (scroll-timeline) animations. nativeFallbacks(required) number— Native animations replaced by the JS driver after the behavioural check. observedTargets(required) number— Elements watched by the shared ResizeObserver. scrollReads(required) number— Scroll position reads (one per source per frame while scrolling). sources(required) number— Live scroll sources (one per scroller with subscribers). timelines(required) number— Live timelines ( createScrollProgressresults not destroyed).ScrollDiagnosticsinterfaceScrollDiagnostics
ScrollDiagnostics Prop Type Default Description actual(required) number— Fresh bounding-box subject start (includes transforms). computed(required) number— Cached subject start (layout, px). drift(required) number— — ScrollGeometryinterfaceScrollGeometry
ScrollGeometry Prop Type Default Description end(required) number— Scroll offset where progress is 1 (px). max(required) number— — position(required) number— — start(required) number— Scroll offset where progress is 0 (px). subjectSize(required) number— — subjectStart(required) number— — viewport(required) number— — ScrollLayerPropsinterfaceScrollLayerProps
ScrollLayerProps Prop Type Default Description asChild boolean— Apply to the single child element instead of rendering a <div>.axis "x" | "y"— — children ReactNode— — conflicts ConflictPolicy— Conflict reporting for exclusive channels (default: warn in development). depth number— SP01 depth (−5…5, default 1). distance number200Travel at depth 1 over the scene, px (default 200). reducedMotion ReducedMotion— — ref Ref<HTMLDivElement>— — Also accepts the props of: React DOM attributes.
ScrollProgressinterfaceScrollProgress
ScrollProgress Prop Type Default Description destroy(required) () => void— Idempotent: releases listeners, observers and frame tasks. diagnose(required) () => ScrollDiagnostics— Cached vs fresh subject position (forces layout; diagnostics only). direction(required) 1 | -1 | 0— 1forward,-1backward,0idle.geometry(required) Readonly<ScrollGeometry>— — get(required) () => number— Progress 0–1 (smoothed when smoothis on and motion is not reduced).getRaw(required) () => number— Unsmoothed progress 0–1. getVelocity(required) () => number— Progress units per second. refresh(required) () => void— Re-measure this timeline in the next read phase. scrollVelocity(required) number— Source velocity on this timeline's axis (px/s). subscribe(required) (listener: (progress: number) => void) => () => void— Listener after every update (update phase) and every smoothing step, with the current progress (not only on change: a draw at progress 0 matters). The first subscription starts following the source. toJSON(required) () => string— — ScrollProgressBarPropsinterfaceScrollProgressBarProps
ScrollProgressBarProps Prop Type Default Description driver DriverPreference— — position "top" | "bottom" | "static"— "top"(default, fixed to the viewport top),"bottom"or"static"(in flow).ref Ref<HTMLDivElement>— — source Element | null— Scroll container (default: the page). Also accepts the props of: React DOM attributes.
ScrollProgressOptionsinterfaceScrollProgressOptions
ScrollProgressOptions Prop Type Default Description axis ScrollAxis— — range readonly [RangeInput, RangeInput]— — reducedMotion ReducedMotion"user"Reduced-motion policy for smoothing (default "user").smooth boolean | SpringOptions | SpringPreset— SP10: spring-smoothed progress ( true= prototype spring 90/20).source Element | Window | null— Scroll container; omitted, nullorwindow→ the root scroller.subject Element | null— Element whose view range is tracked; omit for the source's whole scroll range. ScrollScenePropsinterfaceScrollSceneProps
ScrollSceneProps Prop Type Default Description children ReactNode— — driver DriverPreference"auto"Native scroll timeline for --neshel-scene-progresswhen verified (default"auto").length number— Section length in viewport heights (1–20, default 3); the stage is pinned for length − 1.range readonly [RangeInput, RangeInput]["contain 0%", "contain 100%"]Progress range (default ["contain 0%", "contain 100%"]: the pinned span).reducedMotion ReducedMotion— — ref Ref<HTMLElement>— — smooth boolean— SP10: spring-smoothed scene progress. stageClassName string— Class of the sticky stage. Also accepts the props of: React DOM attributes.
ScrollTriggerinterfaceScrollTrigger
ScrollTrigger Prop Type Default Description destroy(required) () => void— — state(required) TriggerState— — ScrollTriggerOptionsinterfaceScrollTriggerOptions
ScrollTriggerOptions Prop Type Default Description mode TriggerMode"repeat""once"stops observing after the first enter (default"repeat").onChange (state: TriggerState) => void— — onEnter () => void— before → active (scrolling forward into the area). onEnterBack () => void— after → active (scrolling back into the area). onLeave () => void— active → after (scrolled past). onLeaveBack () => void— active → before (scrolled back above the area's start). trigger InViewInput— — ScrubPoseinterfaceScrubPose
ScrubPose Prop Type Default Description opacity number— — rotateZ number— — scale number— — translateX number— — translateY number— — ScrubTransformOptionsinterfaceScrubTransformOptions
ScrubTransformOptions Prop Type Default Description easing Easing | EasingPreset— — from ScrubPose— — range readonly [RangeInput, RangeInput]— Range of the effect's own timeline (ignored with timeline).reducedMotion ReducedMotion— — scrollAxis ScrollAxis"block"Scroll axis of the effect's own timeline (default "block").smooth boolean | SpringOptions | SpringPreset— SP10 spring smoothing of the effect's own timeline. source Element | Window | null— Scroll container of the effect's own timeline (default: the root scroller). timeline ScrollProgress— A shared timeline (e.g. from useScrollScene()); otherwise the effect creates one.to ScrubPose— — SectionSpyinterfaceSectionSpy
SectionSpy Prop Type Default Description active(required) number— — destroy(required) () => void— — refresh(required) () => void— — SectionSpyHookOptionsinterfaceSectionSpyHookOptions
SectionSpyHookOptions Prop Type Default Description line number— Activation line (fraction of the viewport from the top, default 0.3). source Element | null— — SectionSpyOptionsinterfaceSectionSpyOptions
SectionSpyOptions Prop Type Default Description axis ScrollAxis— — line number— Activation line as a fraction of the scrollport from its start (0–1, default 0.3). onChange (index: number, section: Element | undefined) => void— Called with the active index (-1 before the first section) and element. source Element | Window | null— — StickyStackOptionsinterfaceStickyStackOptions
StickyStackOptions Prop Type Default Description range readonly [RangeInput, RangeInput]— Range of the effect's own timeline (ignored with timeline).reducedMotion ReducedMotion— — scale number— Scale removed from a fully covered card (0–0.5, default 0.05; 0 = CSS-only stacking). scrollAxis ScrollAxis"block"Scroll axis of the effect's own timeline (default "block").smooth boolean | SpringOptions | SpringPreset— SP10 spring smoothing of the effect's own timeline. source Element | Window | null— Scroll container of the effect's own timeline (default: the root scroller). timeline ScrollProgress— A shared timeline (e.g. from useScrollScene()); otherwise the effect creates one.StickyStackPropsinterfaceStickyStackProps
StickyStackProps Prop Type Default Description children ReactNode— — offset string"1.25rem"Offset between stacked cards (CSS length, default "1.25rem").reducedMotion ReducedMotion— — ref Ref<HTMLDivElement>— — scale number— Scale removed from a covered card (default 0.05; 0 = CSS only). top string"1rem"Sticky top of the first card (CSS length, default "1rem").Also accepts the props of: React DOM attributes.
StuckStateOptionsinterfaceStuckStateOptions
StuckStateOptions Prop Type Default Description onChange (stuck: boolean) => void— — source Element | Window | null— — VelocitySkewOptionsinterfaceVelocitySkewOptions
VelocitySkewOptions Prop Type Default Description axis "x" | "y"— — factor number— Degrees per px/s (0–0.05, default 0.003). max number— Maximum skew in degrees (0–30, default 8). reducedMotion ReducedMotion— — source Element | Window | null— — spring SpringOptions— — ZoomOnScrollOptionsinterfaceZoomOnScrollOptions
ZoomOnScrollOptions Prop Type Default Description easing Easing | EasingPreset— — from number— Scale at progress 0 (0.1–5, default 1). range readonly [RangeInput, RangeInput]— Range of the effect's own timeline (ignored with timeline).reducedMotion ReducedMotion— — scrollAxis ScrollAxis"block"Scroll axis of the effect's own timeline (default "block").smooth boolean | SpringOptions | SpringPreset— SP10 spring smoothing of the effect's own timeline. source Element | Window | null— Scroll container of the effect's own timeline (default: the root scroller). timeline ScrollProgress— A shared timeline (e.g. from useScrollScene()); otherwise the effect creates one.to number— Scale at progress 1 (0.1–5, default 1.2). DriverPreferencetype"auto" | "native" | "js"HorizontalLayouttype"auto" | "pinned" | "stacked" | "scroll"InViewInputtypeInViewPreset | InViewOptionsInViewPositiontype"before" | "inside" | "after"InViewPresettypekeyof typeof inViewPresetsInViewProgressOptionstypeInViewProgressOptions
InViewProgressOptions Prop Type Default Description driver DriverPreference— "auto"(default): native scroll timeline when verified, else JS.range readonly [RangeInput, RangeInput]— Range of the effect's own timeline (ignored with timeline).reducedMotion ReducedMotion— — scrollAxis ScrollAxis"block"Scroll axis of the effect's own timeline (default "block").smooth boolean | SpringOptions | SpringPreset— SP10 spring smoothing of the effect's own timeline. source Element | Window | null— Scroll container of the effect's own timeline (default: the root scroller). timeline ScrollProgress— A shared timeline (e.g. from useScrollScene()); otherwise the effect creates one.PinnedSceneOptionstypePinnedSceneOptions
PinnedSceneOptions Prop Type Default Description driver DriverPreference— "auto"(default): native scroll timeline when verified, else JS.range readonly [RangeInput, RangeInput]— Range of the effect's own timeline (ignored with timeline).reducedMotion ReducedMotion— — scrollAxis ScrollAxis"block"Scroll axis of the effect's own timeline (default "block").smooth boolean | SpringOptions | SpringPreset— SP10 spring smoothing of the effect's own timeline. source Element | Window | null— Scroll container of the effect's own timeline (default: the root scroller). timeline ScrollProgress— A shared timeline (e.g. from useScrollScene()); otherwise the effect creates one.RangeInputtypeA range edge. With a subject: `"<name>"` or `"<name> <percent>%"`. Without: px (number) or `"<percent>%"` of the maximum scroll.
number | `${number}%` | RangeName | `${RangeName} ${number}%`RangeNametype(typeof RANGE_NAMES)[number]ScrollAxistype"block" | "inline"ScrollEffectPropstypeScrollEffectProps
ScrollEffectProps Prop Type Default Description asChild boolean— Apply to the single child element instead of rendering a <div>.children ReactNode— — conflicts ConflictPolicy— Conflict reporting for exclusive channels (default: warn in development). options object— Options of a single preset. preset(required) AnyPreset | readonly AnyPreset[]— One scroll / scroll-trigger effect or preset, or a list composed on the element. ref Ref<HTMLDivElement>— — Also accepts the props of: React DOM attributes.
ScrollProgressEffectOptionstypeScrollProgressEffectOptions
ScrollProgressEffectOptions Prop Type Default Description driver DriverPreference— "auto"(default): native scroll timeline when verified, else JS.range readonly [RangeInput, RangeInput]— Range of the effect's own timeline (ignored with timeline).reducedMotion ReducedMotion— — scrollAxis ScrollAxis"block"Scroll axis of the effect's own timeline (default "block").smooth boolean | SpringOptions | SpringPreset— SP10 spring smoothing of the effect's own timeline. source Element | Window | null— Scroll container of the effect's own timeline (default: the root scroller). timeline ScrollProgress— A shared timeline (e.g. from useScrollScene()); otherwise the effect creates one.TriggerModetype"once" | "repeat" | "reverse"TriggerStatetype"idle" | "before" | "active" | "after"