Saltar al contenido
Neshel-UI
Animaciones (experimental)Referencia

@neshel-ui/animations/media

Todas las exportaciones de @neshel-ui/animations/media, 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.

  • BlurUpImage component

    M02 — a native `<img>` with a blurred placeholder until it is decoded (visible without JavaScript).

    (props: BlurUpImageProps): Element
  • CompareSlider component

    M04 — before/after comparison with a native range input (keyboard, touch, pointer, value text).

    (props: CompareSliderProps): Element
  • Crossfade component

    M08 — stacked slides cross-fading to `index` (inactive slides inert and hidden from AT).

    (props: CrossfadeProps): Element
  • Duotone component

    M05 — duotone transition on the single child (image untouched; filter restored on cleanup).

    ({ children, controlRef, ...options }: DuotoneProps): Element
  • HoverPan component

    M10 — the single media child follows the pointer inside a clipping frame.

    (props: HoverPanProps): Element
  • KenBurns component

    M01 — a clipping frame (`div.neshel-kenburns`) around one image or video.

    (props: KenBurnsProps): Element
  • Lightbox component

    M07 — thumbnail button + native modal `<dialog>` with a FLIP zoom (focus, Escape, scroll lock).

    (props: LightboxProps): Element
  • LoadReveal component

    M03 — reveal the single `<img>` child when (and only if) it finishes loading.

    ({ children, controlRef, ...options }: LoadRevealProps): Element
  • PixelDissolve component

    M09 — block dissolve between stacked images on a decorative canvas (cross-fade fallback).

    (props: PixelDissolveProps): Element
  • cameraValues function

    Bounded pose → channel values (`translate` in % of the media box).

    (scale: number, x: number, y: number): { scale: string; translate: string; }
  • createBlurUp function

    M02 — a blurred placeholder layer fades out as the decoded image fades in.

    (frame: HTMLElement, options?: BlurUpOptions | undefined): MediaRevealControl
  • createCompareSlider function
    (root: HTMLElement, options?: CompareSliderOptions | undefined): CompareControl
  • createCrossfade function

    M08 — cross-fade between slides; interruptible from the current opacities.

    (container: HTMLElement, options?: CrossfadeOptions | undefined): CrossfadeControl
  • createDuotone function
    (element: Element, options?: DuotoneOptions | undefined): ProgressControl
  • createHoverPan function

    M10 — the media follows the pointer inside its frame (bounded, springy, restored on leave).

    (frame: HTMLElement, options?: HoverPanOptions | undefined): HoverPanControl
  • createKenBurns function

    M01 — slow bounded camera move over an image or video inside a clipping frame.

    (media: Element, options?: KenBurnsOptions | undefined): ProgressControl
  • createLightboxZoom function
    (options: LightboxZoomOptions): LightboxControl
  • createLoadReveal function

    M03 — the image is revealed by a clip when (and only if) it finishes loading.

    (img: HTMLImageElement, options?: LoadRevealOptions | undefined): MediaRevealControl
  • createPixelDissolve function

    M09 — block dissolve between images on a Canvas 2D surface; cross-fade fallback.

    (container: HTMLElement, options?: PixelDissolveOptions | undefined): DissolveControl
  • createVideoScrub function
    (video: HTMLVideoElement, options?: VideoScrubOptions | undefined): VideoScrubControl
  • getMediaDebugInfo function
    (): MediaDebugInfo
  • getMediaSupport function
    (): MediaSupport
  • useKenBurns function

    M01 — Ken Burns on a media element you render inside a clipping frame.

    (ref: RefObject<Element | null>, options?: KenBurnsOptions | undefined): RefObject<ProgressControl | null>
  • useVideoScrub function

    M06 — scrub a `<video>` you render from a 0–1 progress source (never plays it).

    (ref: RefObject<HTMLVideoElement | null>, options: VideoScrubOptions): RefObject<VideoScrubControl | null>
  • watchImage function
    (img: HTMLImageElement, onChange: (state: ImageLoadState) => void, options?: WatchImageOptions | undefined): () => void
  • BlurUpOptions interface

    BlurUpOptions

    BlurUpOptions
    PropTipoPredeterminadoDescripción
    blurnumber—Desenfoque del marcador en px (0–40, por defecto 16).
    durationnumber—ms (0–10000; por defecto según el efecto).
    easingEasing | EasingPreset——
    imageHTMLImageElement—La imagen (por defecto: el primer img del marco).
    onStateChange(state: MediaRevealState) => void——
    placeholderstring—Marcador: URL o data URI de una imagen mínima, un degradado CSS o un color (por defecto un tono neutro).
    reducedMotionReducedMotion——
    replayboolean—Anima una imagen que ya estaba cargada (por defecto false: se muestra al instante).
    revealTimeoutnumber—ms tras los que se muestra igualmente una imagen que sigue cargando (500–60000, por defecto 8000).
  • CameraPose interface

    CameraPose

    CameraPose
    PropTipoPredeterminadoDescripción
    scalenumber—Uniform zoom 1–3.
    xnumber—−1 (left) … 1 (right) of the pan allowance.
    ynumber—−1 (top) … 1 (bottom) of the pan allowance.
  • CompareControl interface

    CompareControl

    CompareControl
    PropTipoPredeterminadoDescripción
    destroy(obligatoria)() => void——
    set(obligatoria)(value: number) => void—Set the value (0–100) without animation.
    value(obligatoria)number——
  • CompareSliderOptions interface

    CompareSliderOptions

    CompareSliderOptions
    PropTipoPredeterminadoDescripción
    onValueChange(value: number) => void——
    orientation"horizontal" | "vertical"——
    stepnumber—Paso de teclado (0.1–25, por defecto 1).
    valuenumber500–100 (por defecto 50): parte visible de la imagen «antes».
    valueText(value: number) => string"N% before, M% after"Texto del valor para tecnología de asistencia (por defecto "N% before, M% after").
  • CrossfadeControl interface

    CrossfadeControl

    CrossfadeControl
    PropTipoPredeterminadoDescripción
    count(obligatoria)number——
    destroy(obligatoria)() => void——
    index(obligatoria)number——
    next(obligatoria)() => void——
    pause(obligatoria)() => void—Stop autoplay (WCAG 2.2.2).
    play(obligatoria)() => void——
    prev(obligatoria)() => void——
    show(obligatoria)(index: number) => void——
  • CrossfadeOptions interface

    CrossfadeOptions

    CrossfadeOptions
    PropTipoPredeterminadoDescripción
    durationnumber—ms (0–10000; por defecto según el efecto).
    easingEasing | EasingPreset——
    indexnumber0Diapositiva inicial (por defecto 0).
    intervalnumber—Intervalo automático en ms (≥ 2000; ninguno por defecto). Se pausa con hover, foco dentro y página oculta.
    onIndexChange(index: number) => void——
    reducedMotionReducedMotion——
  • DissolveControl interface

    DissolveControl

    DissolveControl
    PropTipoPredeterminadoDescripción
    destroy(obligatoria)() => void——
    index(obligatoria)number——
    mode(obligatoria)"dissolve" | "fade" | "none"—dissolve (canvas) or fade (fallback) — of the last transition.
    running(obligatoria)boolean——
    show(obligatoria)(index: number) => void——
  • DuotoneOptions interface

    DuotoneOptions

    DuotoneOptions
    PropTipoPredeterminadoDescripción
    amountnumber1Cantidad final de duotono 0–1 (por defecto 1).
    durationnumber—ms (0–10000; por defecto según el efecto).
    easingEasing | EasingPreset——
    highlightstring#f2c14eColor de las luces (por defecto #f2c14e).
    onComplete(result: MotionResult) => void——
    progressProgressSource—Se dirige con una fuente de 0 a 1 en lugar de su propio reloj.
    reducedMotionReducedMotion——
    shadowstring#1b1f3aColor de las sombras (por defecto #1b1f3a). Hex #rgb/#rrggbb o rgb(r g b).
    triggerProgressTrigger"visible"Por defecto "visible" (una vez); se ignora con progress.
  • GalleryOptions interface

    GalleryOptions

    GalleryOptions
    PropTipoPredeterminadoDescripción
    durationnumber—ms (0–10000; por defecto según el efecto).
    easingEasing | EasingPreset——
    indexnumber0Diapositiva inicial (por defecto 0).
    onIndexChange(index: number) => void——
    reducedMotionReducedMotion——
  • HoverPanControl interface

    HoverPanControl

    HoverPanControl
    PropTipoPredeterminadoDescripción
    destroy(obligatoria)() => void——
    reset(obligatoria)() => void—Back to the rest pose.
  • HoverPanOptions interface

    HoverPanOptions

    HoverPanOptions
    PropTipoPredeterminadoDescripción
    keyboardboolean—Marco enfocable con desplazamiento por flechas (para imágenes cuyo detalle es información; necesita nombre).
    mediaElement—El elemento que se mueve (por defecto: el primer hijo del marco).
    pointerTypesreadonly ("mouse" | "pen" | "touch")[]—Tipos de puntero que desplazan (por defecto ratón y lápiz; el tacto desplaza la página).
    reducedMotionReducedMotion——
    scalenumber1.4Zoom con hover 1.05–3 (por defecto 1.4).
    springSpringOptions——
    stepnumber—Paso de teclado como fracción del recorrido (0.02–0.5, por defecto 0.1).
  • KenBurnsOptions interface

    KenBurnsOptions

    KenBurnsOptions
    PropTipoPredeterminadoDescripción
    durationnumber—ms (0–10000; por defecto según el efecto).
    easingEasing | EasingPreset——
    fromCameraPose{ scale: 1.05, x: 0, y: 0 }Pose inicial (por defecto { scale: 1.05, x: 0, y: 0 }).
    onComplete(result: MotionResult) => void——
    progressProgressSource—Se dirige con una fuente de 0 a 1 en lugar de su propio reloj.
    reducedMotionReducedMotion——
    repeatnumber—Ejecuciones extra (0–1000 o Infinity, explícito; por defecto 0). Se pausa fuera de pantalla y con la página oculta.
    toCameraPose{ scale: 1.18, x: 0.4, y: -0.3 }Pose final (por defecto { scale: 1.18, x: 0.4, y: -0.3 }).
    triggerProgressTrigger"visible"Por defecto "visible" (una vez); se ignora con progress.
    yoyobooleantrueAlterna la dirección entre ejecuciones (por defecto true).
  • LightboxControl interface

    LightboxControl

    LightboxControl
    PropTipoPredeterminadoDescripción
    close(obligatoria)() => void—Animated close (immediate under reduced motion).
    destroy(obligatoria)() => void——
    open(obligatoria)() => void——
    state(obligatoria)"closed" | "open" | "closing"——
  • LightboxZoomOptions interface

    LightboxZoomOptions

    LightboxZoomOptions
    PropTipoPredeterminadoDescripción
    dialog(obligatoria)HTMLDialogElement——
    durationnumber—ms del zoom (0–2000, por defecto 380).
    getThumbnail(obligatoria)() => Element | null—La miniatura desde y hacia la que se amplía (medida al abrir y al cerrar).
    image(obligatoria)HTMLElement—La imagen grande (o cualquier elemento) que se amplía.
    onOpenChange(open: boolean) => void——
    reducedMotionReducedMotion——
  • LoadRevealOptions interface

    LoadRevealOptions

    LoadRevealOptions
    PropTipoPredeterminadoDescripción
    direction"up" | "down" | "left" | "right"upBorde hacia el que avanza el revelado (por defecto up en inset, right en wipe).
    durationnumber—ms (0–10000; por defecto según el efecto).
    easingEasing | EasingPreset——
    onStateChange(state: MediaRevealState) => void——
    reducedMotionReducedMotion——
    replayboolean—Anima una imagen que ya estaba cargada (por defecto false: se muestra al instante).
    revealTimeoutnumber—ms tras los que se muestra igualmente una imagen que sigue cargando (500–60000, por defecto 8000).
    shape"inset" | "circle" | "wipe"—inset (desde un borde, por defecto), circle (desde el centro) o wipe (horizontal).
  • MediaDebugInfo interface

    MediaDebugInfo

    MediaDebugInfo
    PropTipoPredeterminadoDescripción
    cells(obligatoria)number——
    effects(obligatoria)number——
    filters(obligatoria)number——
    framesPresented(obligatoria)number——
    hidden(obligatoria)number——
    scrollLocks(obligatoria)number——
    seeksCoalesced(obligatoria)number——
    seeksIssued(obligatoria)number——
    seeksRequested(obligatoria)number——
    surfaces(obligatoria)number——
    watchers(obligatoria)number——
  • MediaRevealControl interface

    MediaRevealControl

    MediaRevealControl
    PropTipoPredeterminadoDescripción
    destroy(obligatoria)() => void——
    reveal(obligatoria)() => void—Show the image now (no animation).
    state(obligatoria)MediaRevealState——
  • MediaRevealOptions interface

    MediaRevealOptions

    MediaRevealOptions
    PropTipoPredeterminadoDescripción
    durationnumber—ms (0–10000; por defecto según el efecto).
    easingEasing | EasingPreset——
    onStateChange(state: MediaRevealState) => void——
    reducedMotionReducedMotion——
    replayboolean—Anima una imagen que ya estaba cargada (por defecto false: se muestra al instante).
    revealTimeoutnumber—ms tras los que se muestra igualmente una imagen que sigue cargando (500–60000, por defecto 8000).
  • MediaSupport interface

    MediaSupport

    MediaSupport
    PropTipoPredeterminadoDescripción
    canvas2d(obligatoria)boolean——
    clipPath(obligatoria)boolean——
    decode(obligatoria)boolean——
    dialog(obligatoria)boolean——
    fastSeek(obligatoria)boolean——
    inert(obligatoria)boolean——
    videoFrameCallback(obligatoria)boolean——
  • PixelDissolveOptions interface

    PixelDissolveOptions

    PixelDissolveOptions
    PropTipoPredeterminadoDescripción
    cellnumber—Tamaño de celda en px CSS (4–64, por defecto 16); aumenta si la cuadrícula supera maxCells.
    durationnumber—ms (0–10000; por defecto según el efecto).
    easingEasing | EasingPreset——
    indexnumber0Diapositiva inicial (por defecto 0).
    maxCellsnumber—Límite de celdas (64–4096, por defecto 4096).
    maxDprnumber—Límite de densidad del canvas (1–3, por defecto 2).
    onIndexChange(index: number) => void——
    reducedMotionReducedMotion——
    seednumber1Semilla del orden (por defecto 1).
  • ProgressControl interface

    ProgressControl

    ProgressControl
    PropTipoPredeterminadoDescripción
    cancel(obligatoria)() => void——
    destroy(obligatoria)() => void—Idempotent: stops, releases and restores.
    drive(obligatoria)(source: ProgressSource) => () => void—Follow a 0–1 source instead of the own clock; returns the unsubscribe.
    finish(obligatoria)() => void——
    finished(obligatoria)Promise<MotionResult>—Promise of the current (or next) run.
    pause(obligatoria)() => void——
    play(obligatoria)() => void——
    progress(obligatoria)number—Rendered progress 0–1.
    reverse(obligatoria)() => void——
    seek(obligatoria)(progress: number) => void—Render the effect at a time fraction 0–1 of its run (eased).
    state(obligatoria)MotionState——
    track(obligatoria)(options?: ProgressTrackOptions) => ProgressTrack—A value track for createTimeline().add(…): the timeline clock drives this effect.
  • ProgressEffectOptions interface

    ProgressEffectOptions

    ProgressEffectOptions
    PropTipoPredeterminadoDescripción
    durationnumber—ms (0–10000; por defecto según el efecto).
    easingEasing | EasingPreset——
    onComplete(result: MotionResult) => void——
    progressProgressSource—Se dirige con una fuente de 0 a 1 en lugar de su propio reloj.
    reducedMotionReducedMotion——
    triggerProgressTrigger"visible"Por defecto "visible" (una vez); se ignora con progress.
  • ProgressSource interface

    ProgressSource

    Any 0–1 progress source (the 011 ScrollProgress and motion values fit).

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

    VideoScrubControl

    VideoScrubControl
    PropTipoPredeterminadoDescripción
    destroy(obligatoria)() => void——
    drive(obligatoria)(source: ProgressSource) => () => void—Follow another source; returns the unsubscribe.
    seek(obligatoria)(progress: number) => void—Request a progress 0–1 directly.
    state(obligatoria)"waiting" | "ready" | "reduced"—waiting (no metadata yet), ready, reduced.
    target(obligatoria)number—Newest requested time (s) or NaN.
  • VideoScrubOptions interface

    VideoScrubOptions

    VideoScrubOptions
    PropTipoPredeterminadoDescripción
    precision"exact" | "fast"—exact (por defecto) o fast (búsquedas por fotograma clave con fastSeek si existe).
    progressProgressSource—Fuente de 0 a 1 (obligatoria salvo que llames a drive() después).
    rangereadonly [number, number]—Intervalo de tiempo en s asignado a 0–1 (por defecto toda la duración).
    reducedMotionReducedMotion——
    restTimenumber—s mostrado con movimiento reducido (por defecto: el tiempo actual).
    restorebooleanfalseRestaura el currentTime original al destruir (por defecto false).
    tolerancenumber—s; las diferencias menores no se buscan (0–1, por defecto 1/60).
  • WatchImageOptions interface

    WatchImageOptions

    WatchImageOptions
    PropTipoPredeterminadoDescripción
    decodebooleantrueAwait img.decode() after load (default true).
  • BlurUpImageProps type

    BlurUpImageProps

    BlurUpImageProps
    PropTipoPredeterminadoDescripción
    blurnumber—Desenfoque del marcador en px (0–40, por defecto 16).
    controlRefRefObject<C | null>——
    durationnumber—ms (0–10000; por defecto según el efecto).
    easingEasing | EasingPreset——
    frameClassNamestring—Class of the wrapper span.neshel-blurup.
    onRevealStateChangeBlurUpOptions["onStateChange"]——
    placeholderstring—Marcador: URL o data URI de una imagen mínima, un degradado CSS o un color (por defecto un tono neutro).
    reducedMotionReducedMotion——
    replayboolean—Anima una imagen que ya estaba cargada (por defecto false: se muestra al instante).
    revealTimeoutnumber—ms tras los que se muestra igualmente una imagen que sigue cargando (500–60000, por defecto 8000).

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

  • CompareSliderProps type

    CompareSliderProps

    CompareSliderProps
    PropTipoPredeterminadoDescripción
    after(obligatoria)ReactNode——
    before(obligatoria)ReactNode——
    controlRefRefObject<C | null>——
    defaultValuenumber——
    jumps{ before: string; after: string; }—Labels of optional "show before"/"show after" buttons (comparison without dragging).
    label(obligatoria)string—Accessible name of the slider (required).
    onValueChange(value: number) => void——
    orientation"horizontal" | "vertical"——
    stepnumber——
    valuenumber—Controlled value 0–100.
    valueText(value: number) => string——

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

  • CrossfadeProps type

    CrossfadeProps

    CrossfadeProps
    PropTipoPredeterminadoDescripción
    children(obligatoria)ReactNode——
    controlRefRefObject<C | null>——
    durationnumber—ms (0–10000; por defecto según el efecto).
    easingEasing | EasingPreset——
    indexnumber0Diapositiva inicial (por defecto 0).
    intervalnumber—Intervalo automático en ms (≥ 2000; ninguno por defecto). Se pausa con hover, foco dentro y página oculta.
    onIndexChange(index: number) => void——
    reducedMotionReducedMotion——

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

  • DuotoneProps type

    DuotoneProps

    DuotoneProps
    PropTipoPredeterminadoDescripción
    amountnumber1Cantidad final de duotono 0–1 (por defecto 1).
    children(obligatoria)ReactElement——
    controlRefRefObject<C | null>——
    durationnumber—ms (0–10000; por defecto según el efecto).
    easingEasing | EasingPreset——
    highlightstring#f2c14eColor de las luces (por defecto #f2c14e).
    onComplete(result: MotionResult) => void——
    progressProgressSource—Se dirige con una fuente de 0 a 1 en lugar de su propio reloj.
    reducedMotionReducedMotion——
    shadowstring#1b1f3aColor de las sombras (por defecto #1b1f3a). Hex #rgb/#rrggbb o rgb(r g b).
    triggerProgressTrigger"visible"Por defecto "visible" (una vez); se ignora con progress.
  • HoverPanProps type

    HoverPanProps

    HoverPanProps
    PropTipoPredeterminadoDescripción
    children(obligatoria)ReactElement——
    controlRefRefObject<C | null>——
    keyboardboolean—Marco enfocable con desplazamiento por flechas (para imágenes cuyo detalle es información; necesita nombre).
    labelstring—Accessible name of the focusable frame (required with keyboard).
    pointerTypesreadonly ("mouse" | "pen" | "touch")[]—Tipos de puntero que desplazan (por defecto ratón y lápiz; el tacto desplaza la página).
    reducedMotionReducedMotion——
    scalenumber1.4Zoom con hover 1.05–3 (por defecto 1.4).
    springSpringOptions——
    stepnumber—Paso de teclado como fracción del recorrido (0.02–0.5, por defecto 0.1).

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

  • ImageLoadState type

    Image load watcher (Phase 015, internal; research R1, contracts/media-api.md §1). Reports `loading`, `loaded` or `error` for an `<img>` WITHOUT missing a `load` that happened before it was attached: the first report is synchronous from `complete`/`naturalWidth`. `load` waits for `decode()` (rejection tolerated — the state is re-read) so a reveal never shows a half-decoded frame. A MutationObserver on `src`/`srcset`/`sizes` re-evaluates after an explicit source change; answers of an older generation are dropped. Native attributes are never written. A responsive `srcset` candidate swap (viewport/DPR) keeps the current image visible, so it only reports `loaded` again.

    "loading" | "loaded" | "error"
  • KenBurnsProps type

    KenBurnsProps

    KenBurnsProps
    PropTipoPredeterminadoDescripción
    children(obligatoria)ReactElement——
    controlRefRefObject<C | null>——
    durationnumber—ms (0–10000; por defecto según el efecto).
    easingEasing | EasingPreset——
    fromCameraPose{ scale: 1.05, x: 0, y: 0 }Pose inicial (por defecto { scale: 1.05, x: 0, y: 0 }).
    onComplete(result: MotionResult) => void——
    progressProgressSource—Se dirige con una fuente de 0 a 1 en lugar de su propio reloj.
    reducedMotionReducedMotion——
    repeatnumber—Ejecuciones extra (0–1000 o Infinity, explícito; por defecto 0). Se pausa fuera de pantalla y con la página oculta.
    toCameraPose{ scale: 1.18, x: 0.4, y: -0.3 }Pose final (por defecto { scale: 1.18, x: 0.4, y: -0.3 }).
    triggerProgressTrigger"visible"Por defecto "visible" (una vez); se ignora con progress.
    yoyobooleantrueAlterna la dirección entre ejecuciones (por defecto true).

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

  • LightboxProps type

    LightboxProps

    LightboxProps
    PropTipoPredeterminadoDescripción
    children(obligatoria)ReactNode—Large content; its first element zooms from the thumbnail.
    classNamestring——
    closeLabelstring——
    controlRefRefObject<C | null>——
    durationnumber——
    label(obligatoria)string—Accessible name of the dialog (required).
    onOpenChange(open: boolean) => void——
    reducedMotionLightboxOptionsPolicy——
    thumbnail(obligatoria)ReactElement—The thumbnail (usually an <img>); rendered inside the trigger button.
    triggerLabelstring—Accessible name of the trigger (default: the thumbnail's alt text).
  • LoadRevealProps type

    LoadRevealProps

    LoadRevealProps
    PropTipoPredeterminadoDescripción
    children(obligatoria)ReactElement—One native <img>.
    controlRefRefObject<C | null>——
    direction"up" | "down" | "left" | "right"upBorde hacia el que avanza el revelado (por defecto up en inset, right en wipe).
    durationnumber—ms (0–10000; por defecto según el efecto).
    easingEasing | EasingPreset——
    onStateChange(state: MediaRevealState) => void——
    reducedMotionReducedMotion——
    replayboolean—Anima una imagen que ya estaba cargada (por defecto false: se muestra al instante).
    revealTimeoutnumber—ms tras los que se muestra igualmente una imagen que sigue cargando (500–60000, por defecto 8000).
    shape"inset" | "circle" | "wipe"—inset (desde un borde, por defecto), circle (desde el centro) o wipe (horizontal).
  • MediaRevealState type
    "loading" | "revealing" | "shown" | "error"
  • PixelDissolveProps type

    PixelDissolveProps

    PixelDissolveProps
    PropTipoPredeterminadoDescripción
    cellnumber—Tamaño de celda en px CSS (4–64, por defecto 16); aumenta si la cuadrícula supera maxCells.
    children(obligatoria)ReactNode——
    controlRefRefObject<C | null>——
    durationnumber—ms (0–10000; por defecto según el efecto).
    easingEasing | EasingPreset——
    indexnumber0Diapositiva inicial (por defecto 0).
    maxCellsnumber—Límite de celdas (64–4096, por defecto 4096).
    maxDprnumber—Límite de densidad del canvas (1–3, por defecto 2).
    onIndexChange(index: number) => void——
    reducedMotionReducedMotion——
    seednumber1Semilla del orden (por defecto 1).

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

  • ProgressTrigger type
    "visible" | "mount" | "manual"
Editar en GitHub