Saltar al contenido
Neshel-UI
Animaciones (experimental)Referencia

@neshel-ui/animations/cinematic

Todas las exportaciones de @neshel-ui/animations/cinematic, generadas desde sus declaraciones.

Experimental y no disponible en npm

@neshel-ui/animations es un paquete privado (0.0.0). No se puede instalar y su API puede cambiar antes de una primera publicación. Estas páginas documentan lo que existe en el repositorio.

Firmas, miembros y valores por defecto, generados desde las declaraciones compiladas. Las explicaciones y los ejemplos están en la guía.

Las descripciones de esta referencia se generan desde el código fuente del paquete y se muestran en inglés; las guías y el catálogo están en español.

  • CameraStage component

    C03: a stage (viewport) over a large canvas; the camera pans and zooms the canvas.

    ({ label, camera, minZoom, maxZoom, bounds, padding, followFocus, initial, reducedMotion, canvasClassName, canvasStyle, className, children, ref, ...rest }: CameraStageProps): Element
  • Chapter component

    A chapter of the nearest `<SceneChapters>`; marked `data-active` while active.

    ({ id, weight, children, ref, ...rest }: ChapterProps): Element
  • CurtainReveal component

    C05: a curtain (two drapes) or a shutter (slats) opens over the content.

    ({ pattern, slats, ...props }: CurtainRevealProps): Element
  • DepthOfField component

    C08: its element children are depth layers; layers away from `focus` blur.

    ({ focus, maxBlur, falloff, duration, reducedMotion, className, children, ref, ...rest }: DepthOfFieldProps): Element
  • Letterbox component

    C10: cinematic bars slide in from the top and bottom while `active`.

    ({ active, ratio, size, duration, reducedMotion, className, style, children, ref, ...rest }: LetterboxProps): Element
  • SceneChapters component

    C02: chapters and segments scrubbed by a progress source (e.g. a scroll scene) or played on a clock.

    ({ source, progress, autoplay, unit, reducedMotion, onChapterChange, className, children, ...rest }: SceneChaptersProps): Element
  • SceneSegment component

    A segment of the enclosing `<Chapter>`: its element follows the chapter's progress.

    ({ effect, options, from, to, span, asChild, children, ref, ...rest }: SceneSegmentProps): Element
  • SplitReveal component

    C04: two package-rendered halves part to reveal the content.

    ({ direction, ...props }: SplitRevealProps): Element
  • Spotlight component

    C07: dims the stage except a lit circle around `target`.

    ({ target, radius, padding, duration, reducedMotion, className, children, ref, ...rest }: SpotlightProps): Element
  • Storyboard component

    C09: frames with an opt-in, pausable autoplay (APG carousel semantics).

    ({ label, autoplay, interval, loop, transition, duration, reducedMotion, labels, onChange, className, children, ref, ...rest }: StoryboardProps): Element
  • StoryboardFrame component

    A frame of a `<Storyboard>` (its children are the frame content).

    ({ children }: StoryboardFrameProps): Element
  • TitleSequence component

    C06: the element children (consumer lines) enter in sequence over a background.

    ({ effect, options, interval, background, replay, appear, reducedMotion, onComplete, className, children, ref, ...rest }: TitleSequenceProps): Element
  • createCamera function
    (stage: HTMLElement, canvas: HTMLElement, options?: CameraOptions | undefined): Camera
  • createCover function
    (container: HTMLElement, options?: CoverOptions | undefined): Cover
  • createDepthOfField function
    (container: HTMLElement, options?: DepthOfFieldOptions | undefined): DepthOfField
  • createLetterbox function
    (frame: HTMLElement, options?: LetterboxOptions | undefined): LetterboxControl
  • createSceneChapters function
    (options: SceneChaptersOptions): SceneChapters
  • createSpotlight function
    (stage: HTMLElement, options?: SpotlightOptions | undefined): Spotlight
  • createStoryboard function
    (root: HTMLElement, frames: readonly HTMLElement[], options?: StoryboardOptions | undefined): Storyboard
  • createTimeline function
    (options?: TimelineOptions | undefined): Timeline
  • getCinematicDebugInfo function

    Snapshot of the cinematic counters (development and tests).

    (): CinematicDebugInfo
  • titleSequence function
    (timeline: Timeline, options: TitleSequenceOptions): Timeline
  • useCamera function

    A stable handle for `<CameraStage camera={…}>`.

    (): CameraHandle
  • useTimeline function
    (build: (timeline: Timeline) => void, deps?: DependencyList | undefined, options?: (TimelineOptions & { autoplay?: boolean | undefined; }) | undefined): TimelineHandle
  • Camera interface

    Camera

    Camera
    PropTipoPredeterminadoDescripción
    destroy(obligatoria)() => void——
    jump(obligatoria)(target: CameraTarget) => void——
    pose(obligatoria)Readonly<CameraPose>——
    refresh(obligatoria)() => void—Re-measure stage and canvas (after changes no observer can see).
    to(obligatoria)(target: CameraTarget, options?: MoveOptions) => Promise<unknown>——
    track(obligatoria)(target: CameraTarget, options?: TrackOptions) => ValueTrackInput—A timeline track from the last planned pose to target.
  • CameraHandle interface

    CameraHandle

    CameraHandle
    PropTipoPredeterminadoDescripción
    current(obligatoria)Camera | undefined——
    jump(obligatoria)(target: CameraTarget) => void——
    to(obligatoria)(target: CameraTarget, options?: { duration?: number; }) => Promise<unknown>——
  • CameraOptions interface

    CameraOptions

    CameraOptions
    PropTipoPredeterminadoDescripción
    bounds"contain" | "none"—"contain" mantiene el lienzo cubriendo el escenario (por defecto); "none" permite cualquier pose.
    followFocusbooleantrueSe desplaza hasta los elementos que reciben foco de teclado dentro del lienzo (por defecto true).
    initialPartial<CameraPose>—Pose inicial (por defecto: centro del lienzo con zoom 1).
    maxZoomnumber41–10 (por defecto 4).
    minZoomnumber0.50.1–1 (por defecto 0.5).
    onChange(pose: CameraPose) => void——
    paddingnumber—Espacio alrededor de un elemento enfocado (0–400, por defecto 24).
    reducedMotionReducedMotion——
  • CameraPose interface

    CameraPose

    CameraPose
    PropTipoPredeterminadoDescripción
    x(obligatoria)number——
    y(obligatoria)number——
    zoom(obligatoria)number——
  • CameraStageProps interface

    CameraStageProps

    CameraStageProps
    PropTipoPredeterminadoDescripción
    bounds"contain" | "none"—"contain" mantiene el lienzo cubriendo el escenario (por defecto); "none" permite cualquier pose.
    cameraCameraHandle——
    canvasClassNamestring——
    canvasStyleCSSProperties——
    childrenReactNode——
    followFocusbooleantrueSe desplaza hasta los elementos que reciben foco de teclado dentro del lienzo (por defecto true).
    initialPartial<CameraPose>—Pose inicial (por defecto: centro del lienzo con zoom 1).
    label(obligatoria)string—Accessible name of the stage region (required: it is a scrollable region without JS).
    maxZoomnumber41–10 (por defecto 4).
    minZoomnumber0.50.1–1 (por defecto 0.5).
    paddingnumber—Espacio alrededor de un elemento enfocado (0–400, por defecto 24).
    reducedMotionReducedMotion——
    refRef<HTMLElement>——

    También acepta las props de: React DOM attributes.

  • ChapterInput interface

    ChapterInput

    ChapterInput
    PropTipoPredeterminadoDescripción
    elementElement | null—Element marked data-active while the chapter is active.
    id(obligatoria)string——
    weightnumber—Relative length (0.1–10, default 1).
  • ChapterProps interface

    ChapterProps

    ChapterProps
    PropTipoPredeterminadoDescripción
    childrenReactNode——
    id(obligatoria)string——
    refRef<HTMLDivElement>——
    weightnumber—Relative length (0.1–10, default 1).

    También acepta las props de: React DOM attributes.

  • CinematicDebugInfo interface

    CinematicDebugInfo

    CinematicDebugInfo
    PropTipoPredeterminadoDescripción
    clocks(obligatoria)number——
    detached(obligatoria)number——
    listeners(obligatoria)number——
    observers(obligatoria)number——
    reads(obligatoria)number——
    renders(obligatoria)number——
    timelines(obligatoria)number——
    waits(obligatoria)number——
  • Cover interface

    Cover

    Cover
    PropTipoPredeterminadoDescripción
    close(obligatoria)(options?: MoveOptions) => Promise<unknown>——
    destroy(obligatoria)() => void——
    open(obligatoria)(options?: MoveOptions) => Promise<unknown>——
    progress(obligatoria)number—0 covered … 1 open.
    track(obligatoria)(options?: TrackOptions & { to?: 0 | 1; }) => ValueTrackInput—A timeline track that opens (to 1, default) or closes the cover.
  • CoverOptions interface

    CoverOptions

    CoverOptions
    PropTipoPredeterminadoDescripción
    coveredbooleantrueEmpieza cubierto (por defecto true) o abierto.
    patternCoverPattern"split-x"Por defecto "split-x".
    reducedMotionReducedMotion——
    slatsnumber—Lamas de la persiana (2–12, por defecto 6).
  • CurtainRevealProps interface

    CurtainRevealProps

    CurtainRevealProps
    PropTipoPredeterminadoDescripción
    appear"client" | "always"—Reveal on hydration of server markup too (default false: server content is never covered again).
    childrenReactNode——
    durationnumber——
    onOpenChange(open: boolean) => void——
    openboolean—Controlled: open (true) or covered (false). Omitted: reveals once when mounted on the client.
    pattern"curtain" | "shutter"——
    reducedMotionReducedMotion——
    refRef<HTMLDivElement>——
    slatsnumber—Lamas de la persiana (2–12, por defecto 6).

    También acepta las props de: React DOM attributes.

  • DepthOfFieldControl interface

    DepthOfFieldControl

    DepthOfFieldControl
    PropTipoPredeterminadoDescripción
    clear(obligatoria)(options?: MoveOptions) => Promise<unknown>—Everything sharp.
    destroy(obligatoria)() => void——
    focus(obligatoria)(index: number, options?: MoveOptions) => Promise<unknown>——
    focused(obligatoria)number—Focused layer, or -1 when every layer is sharp.
    track(obligatoria)(index: number, options?: TrackOptions) => ValueTrackInput——
  • DepthOfFieldOptions interface

    DepthOfFieldOptions

    DepthOfFieldOptions
    PropTipoPredeterminadoDescripción
    falloffnumber—Desenfoque por capa de distancia en px (0–12, por defecto 4).
    focusnumber—Capa enfocada inicialmente (por defecto ninguna: todo nítido).
    maxBlurnumber—Límite de desenfoque en px (0–12, por defecto 8).
    prioritynumber0Prioridad sobre el canal filter (por defecto 0).
    reducedMotionReducedMotion——
    scalenumber—Reducción de escala por capa de distancia (0–0.1, por defecto 0.02).
  • DepthOfFieldProps interface

    DepthOfFieldProps

    DepthOfFieldProps
    PropTipoPredeterminadoDescripción
    childrenReactNode——
    durationnumber——
    falloffnumber——
    focusnumber—Focused layer (element child index), or -1/omitted for everything sharp.
    maxBlurnumber——
    reducedMotionReducedMotion——
    refRef<HTMLDivElement>——

    También acepta las props de: React DOM attributes.

  • EffectTrackInput interface

    EffectTrackInput

    EffectTrackInput
    PropTipoPredeterminadoDescripción
    durationnumber—ms (0–60000).
    easingEasing | EasingPreset——
    effect(obligatoria)PresetInput<any, any>—An Entrance definition (E01–E09/E11) or a preset of one.
    fillTrackFill—"both" (default) renders the from-state before the start; "forwards" writes nothing before it.
    idstring—Stable id for getTrack/retarget.
    mode"scrub" | "trigger"—"scrub" (default when the definition accepts an external progress): the definition follows the timeline clock — seek, scrub, reverse, interruption. "trigger": the definition plays with its OWN clock when the playhead crosses the start (in), or crosses back (out).
    optionsobject——
    target(obligatoria)Styled——
  • LetterboxControl interface

    LetterboxControl

    LetterboxControl
    PropTipoPredeterminadoDescripción
    destroy(obligatoria)() => void——
    hide(obligatoria)(options?: MoveOptions) => Promise<unknown>——
    progress(obligatoria)number—0 hidden … 1 shown.
    show(obligatoria)(options?: MoveOptions) => Promise<unknown>——
    track(obligatoria)(show: boolean, options?: TrackOptions) => ValueTrackInput——
  • LetterboxOptions interface

    LetterboxOptions

    LetterboxOptions
    PropTipoPredeterminadoDescripción
    reducedMotionReducedMotion——
    shownbooleanfalseEmpieza con las bandas visibles (por defecto false).
  • LetterboxProps interface

    LetterboxProps

    LetterboxProps
    PropTipoPredeterminadoDescripción
    activeboolean——
    childrenReactNode——
    durationnumber——
    rationumber—Visible aspect ratio between the bars (1–4, default 2.39).
    reducedMotionReducedMotion——
    refRef<HTMLDivElement>——
    sizestring—Fixed bar size (CSS length) instead of ratio.

    También acepta las props de: React DOM attributes.

  • MoveOptions interface

    MoveOptions

    MoveOptions
    PropTipoPredeterminadoDescripción
    durationnumber—ms (0–10000; por defecto según el efecto).
    easingEasing | EasingPreset——
  • Pose interface

    Pose

    Pose
    PropTipoPredeterminadoDescripción
    blurnumber—Gaussian blur in px (filter channel, arbitrated).
    opacitynumber—Opacity factor 0–1 (multiplies with the element's own opacity).
    rotatenumber—Rotation in degrees (z axis).
    scalenumber—Uniform scale.
    scaleXnumber—Horizontal / vertical scale (multiply with scale).
    scaleYnumber——
    xnumber—Translation in px.
    ynumber——
  • PoseTrackInput interface

    PoseTrackInput

    PoseTrackInput
    PropTipoPredeterminadoDescripción
    durationnumber—ms (0–60000).
    easingEasing | EasingPreset——
    fillTrackFill—"both" (default) renders the from-state before the start; "forwards" writes nothing before it.
    fromPose——
    idstring—Stable id for getTrack/retarget.
    prioritynumber0Priority of the filter claim when the pose blurs (default 0).
    target(obligatoria)Styled——
    to(obligatoria)Pose——
  • ProgressSource interface

    ProgressSource

    Any 0–1 progress source (the 011 ScrollProgress fits).

    ProgressSource
    PropTipoPredeterminadoDescripción
    get(obligatoria)() => number——
    subscribe(obligatoria)(listener: (progress: number) => void) => () => void——
  • SceneChapter interface

    SceneChapter

    SceneChapter
    PropTipoPredeterminadoDescripción
    end(obligatoria)number——
    id(obligatoria)string——
    index(obligatoria)number——
    start(obligatoria)number—Start and end as fractions of the scene (0–1).
  • SceneChaptersControl interface

    SceneChaptersControl

    SceneChaptersControl
    PropTipoPredeterminadoDescripción
    active(obligatoria)string—Active chapter id.
    chapterAt(obligatoria)(progress: number) => SceneChapter——
    chapters(obligatoria)readonly SceneChapter[]——
    destroy(obligatoria)() => void——
    drive(obligatoria)(source: ProgressSource) => () => void—Scrub from a progress source; returns the unsubscribe.
    pause(obligatoria)() => void——
    play(obligatoria)() => void—Play the scene on its own clock (no source).
    seek(obligatoria)(progress: number) => void—Render the scene at a progress (0–1).
    seekChapter(obligatoria)(id: string) => void—Clock mode: move to a chapter's start.
    segment(obligatoria)(chapterId: string, track: TrackInput, span?: readonly [number, number]) => this[0, 1]Add a track inside a chapter: span is [start, end] as fractions of the chapter (default [0, 1]).
    timeline(obligatoria)Timeline——
  • SceneChaptersOptions interface

    SceneChaptersOptions

    SceneChaptersOptions
    PropTipoPredeterminadoDescripción
    chapters(obligatoria)readonly ChapterInput[]——
    onChapterChange(id: string, index: number) => void——
    reducedMotionReducedMotion——
    unitnumber—Duración del reloj sin fuente, ms por unidad de peso (100–20000, por defecto 1500).
  • SceneChaptersProps interface

    SceneChaptersProps

    SceneChaptersProps
    PropTipoPredeterminadoDescripción
    autoplayboolean—Clock mode: play the scene when mounted (no source, no progress).
    childrenReactNode——
    onChapterChange(id: string, index: number) => void——
    progressnumber—Controlled progress 0–1 (used when there is no source).
    reducedMotionReducedMotion——
    refRef<HTMLDivElement>——
    sourceProgressSource—Scrub source: the useScrollScene() timeline of a <ScrollScene>, or any { get, subscribe }.
    unitnumber1500ms per chapter weight unit in clock mode (default 1500).

    También acepta las props de: React DOM attributes.

  • SceneSegmentProps interface

    SceneSegmentProps

    SceneSegmentProps
    PropTipoPredeterminadoDescripción
    asChildboolean——
    childrenReactNode——
    effectAnyPreset—An Entrance definition or preset (triggered as the chapter crosses it)…
    fromPoseto…or a pose transition (from → to; default to is the identity).
    optionsobject——
    refRef<HTMLDivElement>——
    spanreadonly [number, number][0, 1][start, end] as fractions of the chapter (default [0, 1]).
    toPose——

    También acepta las props de: React DOM attributes.

  • SplitRevealProps interface

    SplitRevealProps

    SplitRevealProps
    PropTipoPredeterminadoDescripción
    appear"client" | "always"—Reveal on hydration of server markup too (default false: server content is never covered again).
    childrenReactNode——
    direction"x" | "y"—"x": halves part left/right (default); "y": top/bottom.
    durationnumber——
    onOpenChange(open: boolean) => void——
    openboolean—Controlled: open (true) or covered (false). Omitted: reveals once when mounted on the client.
    reducedMotionReducedMotion——
    refRef<HTMLDivElement>——

    También acepta las props de: React DOM attributes.

  • SpotlightControl interface

    SpotlightControl

    SpotlightControl
    PropTipoPredeterminadoDescripción
    active(obligatoria)boolean——
    clear(obligatoria)(options?: MoveOptions) => Promise<unknown>——
    destroy(obligatoria)() => void——
    focus(obligatoria)(target: Element | SpotlightTarget, options?: MoveOptions) => Promise<unknown>——
    track(obligatoria)(target: Element | SpotlightTarget | null, options?: TrackOptions) => ValueTrackInput—A timeline track from the last planned pose to target (or to cleared with null).
  • SpotlightOptions interface

    SpotlightOptions

    SpotlightOptions
    PropTipoPredeterminadoDescripción
    paddingnumber—Espacio extra alrededor de la caja del elemento (0–200, por defecto 16).
    radiusnumber—Radio por defecto del círculo iluminado (24–800, por defecto 120).
    reducedMotionReducedMotion——
  • SpotlightProps interface

    SpotlightProps

    SpotlightProps
    PropTipoPredeterminadoDescripción
    childrenReactNode——
    durationnumber——
    paddingnumber——
    radiusnumber——
    reducedMotionReducedMotion——
    refRef<HTMLDivElement>——
    target{ current: Element | null; } | Element | null—Element to light (ref object or element); null/omitted clears the spotlight.

    También acepta las props de: React DOM attributes.

  • SpotlightTarget interface

    SpotlightTarget

    SpotlightTarget
    PropTipoPredeterminadoDescripción
    radiusnumber—Radius of the lit circle in px (24–800).
    x(obligatoria)number——
    y(obligatoria)number——
  • StoryboardControl interface

    StoryboardControl

    StoryboardControl
    PropTipoPredeterminadoDescripción
    count(obligatoria)number——
    destroy(obligatoria)() => void——
    goTo(obligatoria)(index: number) => void——
    index(obligatoria)number——
    next(obligatoria)() => void——
    pause(obligatoria)() => void——
    play(obligatoria)() => void——
    playing(obligatoria)boolean—The user's intent (not paused by hover/visibility).
    previous(obligatoria)() => void——
    rotating(obligatoria)boolean—Whether the timer is actually running now.
    stop(obligatoria)() => void—Pause and return to the first frame.
  • StoryboardFrameProps interface

    StoryboardFrameProps

    StoryboardFrameProps
    PropTipoPredeterminadoDescripción
    childrenReactNode——
    labelstring"n of N"Accessible label of the frame (default "n of N").
  • StoryboardOptions interface

    StoryboardOptions

    StoryboardOptions
    PropTipoPredeterminadoDescripción
    autoplayboolean—Empieza a rotar automáticamente (por defecto false; nunca con movimiento reducido).
    durationnumber—ms de un cambio de fotograma (0–2000, por defecto 450).
    intervalnumber—ms por fotograma en automático (2000–30000, por defecto 5000).
    loopbooleantruePasa del último fotograma al primero (por defecto true).
    onChange(index: number, cause: "user" | "autoplay") => void——
    onPlayingChange(playing: boolean) => void——
    reducedMotionReducedMotion——
    startnumber0Fotograma inicial (por defecto 0).
    transition"fade" | "slide""fade"Tipo de cambio (por defecto "fade").
  • StoryboardProps interface

    StoryboardProps

    StoryboardProps
    PropTipoPredeterminadoDescripción
    autoplayboolean——
    childrenReactNode——
    durationnumber——
    intervalnumber——
    label(obligatoria)string—Accessible name of the storyboard.
    labelsPartial<Record<"play" | "pause" | "previous" | "next" | "stop", string>>—Control labels (English defaults).
    loopboolean——
    onChange(index: number) => void——
    reducedMotionReducedMotion——
    refRef<HTMLElement>——
    transition"fade" | "slide"——

    También acepta las props de: React DOM attributes.

  • Timeline interface

    Timeline

    Timeline
    PropTipoPredeterminadoDescripción
    add(obligatoria)(track: TrackInput, at?: TimelinePosition) => this——
    call(obligatoria)(fn: CallFn, at?: TimelinePosition, options?: { wait?: boolean; reverse?: CallFn; }) => this——
    cancel(obligatoria)() => void——
    destroy(obligatoria)() => void—Idempotent: cancel, release every track (styles restored), drop listeners.
    direction(obligatoria)MotionDirection——
    duration(obligatoria)number—One iteration in ms.
    finish(obligatoria)() => void——
    finished(obligatoria)Promise<MotionResult>——
    getTrack(obligatoria)(id: string) => TrackInfo | undefined——
    iteration(obligatoria)number——
    label(obligatoria)(name: string, at?: TimelinePosition) => this——
    labels(obligatoria)ReadonlyMap<string, number>——
    pause(obligatoria)() => void——
    play(obligatoria)() => void——
    progress(obligatoria)number——
    retarget(obligatoria)(trackId: string, to: Partial<Pose> | number) => void——
    reverse(obligatoria)() => void——
    seek(obligatoria)(progress: number) => void—Progress 0–1 of the current iteration.
    seekTo(obligatoria)(at: number | string, options?: { fire?: boolean; }) => void——
    state(obligatoria)MotionResult["status"] | "idle" | "running" | "paused" | "failed"——
    time(obligatoria)number——
    timeScale(obligatoria)number——
  • TimelineHandle interface

    TimelineHandle

    TimelineHandle
    PropTipoPredeterminadoDescripción
    cancel(obligatoria)() => void——
    current(obligatoria)Timeline | undefined—The live timeline (undefined before mount, after unmount and on the server).
    finish(obligatoria)() => void——
    finished(obligatoria)() => Promise<MotionResult | undefined>—Resolves with the live run's result (undefined when no timeline exists).
    pause(obligatoria)() => void——
    play(obligatoria)() => void——
    reverse(obligatoria)() => void——
    seek(obligatoria)(progress: number) => void——
    seekTo(obligatoria)(at: number | string, options?: { fire?: boolean; }) => void——
  • TimelineOptions interface

    TimelineOptions

    TimelineOptions
    PropTipoPredeterminadoDescripción
    conflictsConflictPolicy—Aviso de conflictos en canales exclusivos (desenfoque de poses, pistas de efectos).
    onComplete(result: MotionResult) => void—Una vez por ejecución completada.
    onRepeat(iteration: number) => void——
    onStart() => void——
    onUpdate(time: number, progress: number) => void——
    reducedMotionReducedMotion——
    repeatnumber—Iteraciones extra: 0 (por defecto) … 1000, o Infinity (solo explícito).
    timeScalenumber10.1–10 (por defecto 1).
    whenHidden"pause" | "finish"—Con la página oculta: detener el reloj (por defecto) o terminar.
    yoyobooleanfalseAlterna la dirección en cada repetición (por defecto false).
  • TimelineTrackInput interface

    TimelineTrackInput

    TimelineTrackInput
    PropTipoPredeterminadoDescripción
    idstring——
    timeline(obligatoria)Timeline——
  • TitleSequenceOptions interface

    TitleSequenceOptions

    TitleSequenceOptions
    PropTipoPredeterminadoDescripción
    atTimelinePosition—Dónde empieza la secuencia en la línea de tiempo (por defecto, su final actual).
    backgroundElement | null——
    backgroundDurationnumber—ms (0–10000, por defecto 1200).
    backgroundFromPose{ opacity: 0, scale: 1.08 }Pose inicial del fondo (por defecto { opacity: 0, scale: 1.08 }); termina en la identidad.
    effect(obligatoria)PresetInput<any, any>—Entrada (definición o preset) ejecutada en cada línea.
    intervalnumber—ms entre inicios de línea (0–1000, por defecto 120).
    lines(obligatoria)readonly Element[]——
    optionsobject—Opciones combinadas en las del efecto para cada línea.
    reducedMotionReducedMotion——
  • TitleSequenceProps interface

    TitleSequenceProps

    TitleSequenceProps
    PropTipoPredeterminadoDescripción
    appear"client" | "always" | "manual""client"Play on hydration of server markup too (default "client").
    backgroundReactNode—Decorative background (rendered aria-hidden).
    childrenReactNode——
    effect(obligatoria)AnyPreset—Entrada (definición o preset) ejecutada en cada línea.
    intervalnumber——
    onComplete() => void——
    optionsobject——
    reducedMotionReducedMotion——
    refRef<HTMLDivElement>——
    replaystring | number | boolean—Changing it replays the sequence.

    También acepta las props de: React DOM attributes.

  • TrackInfo interface

    TrackInfo

    TrackInfo
    PropTipoPredeterminadoDescripción
    detached(obligatoria)boolean——
    duration(obligatoria)number——
    id(obligatoria)string | undefined——
    kind(obligatoria)"pose" | "value" | "effect" | "timeline"——
    progress(obligatoria)number—Last rendered local progress (NaN before the first render).
    start(obligatoria)number——
  • TrackOptions interface

    TrackOptions

    TrackOptions
    PropTipoPredeterminadoDescripción
    durationnumber—ms (0–10000; por defecto según el efecto).
    easingEasing | EasingPreset——
    idstring——
  • ValueTrackInput interface

    ValueTrackInput

    ValueTrackInput
    PropTipoPredeterminadoDescripción
    durationnumber—ms (0–60000).
    easingEasing | EasingPreset——
    fillTrackFill—"both" (default) renders the from-state before the start; "forwards" writes nothing before it.
    from(obligatoria)number——
    idstring—Stable id for getTrack/retarget.
    to(obligatoria)number——
    value(obligatoria)MotionValue——
  • CallDirection type
    "forward" | "reverse"
  • CallFn type
    (direction: CallDirection) => unknown
  • CameraTarget type

    CameraTarget

    CameraTarget
    PropTipoPredeterminadoDescripción
    focus(obligatoria)Element——
    paddingnumber——
    xnumber——
    ynumber——
    zoomnumber——
  • CoverPattern type
    "split-x" | "split-y" | "curtain" | "shutter"
  • TimelinePosition type

    Absolute ms, a label (`"intro"`, `"intro+=200"`), `"<"`/`">"` (± ms) or `"+=ms"`/`"-=ms"`.

    number | string
  • TrackFill type
    "both" | "forwards"
  • TrackInput type

    TrackInput

    TrackInput
    PropTipoPredeterminadoDescripción
    durationnumber—ms (0–60000).
    easingEasing | EasingPreset——
    effect(obligatoria)PresetInput<any, any>—An Entrance definition (E01–E09/E11) or a preset of one.
    fillTrackFill—"both" (default) renders the from-state before the start; "forwards" writes nothing before it.
    fromPose | number——
    idstring—Stable id for getTrack/retarget.
    mode"scrub" | "trigger"—"scrub" (default when the definition accepts an external progress): the definition follows the timeline clock — seek, scrub, reverse, interruption. "trigger": the definition plays with its OWN clock when the playhead crosses the start (in), or crosses back (out).
    optionsobject——
    prioritynumber0Priority of the filter claim when the pose blurs (default 0).
    target(obligatoria)Styled——
    timeline(obligatoria)Timeline——
    to(obligatoria)Pose | number——
    value(obligatoria)MotionValue——
Editar en GitHub