@neshel-ui/animations/text
Todas las exportaciones de @neshel-ui/animations/text, generadas desde sus declaraciones.
Experimental y no disponible en npm
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.
FontAxescomponentT10 — variable-font axis animation.
(props: FontAxesProps): ReactElement<any, string | JSXElementConstructor<any>>GradientTextcomponentT04 — gradient sweep text (renders a `<span>` by default).
(props: GradientTextProps): ReactElement<any, string | JSXElementConstructor<any>>HighlightcomponentT08 — highlighter draw (renders `<mark>` by default).
(props: HighlightProps): ReactElement<any, string | JSXElementConstructor<any>>LineRevealcomponentT11 — line-by-line reveal from a progress source (e.g. `useScrollScene()` / `ScrollProgress`).
(props: LineRevealProps): ReactElement<any, string | JSXElementConstructor<any>>NumberRollcomponentT05 — number roll. Server markup: the formatted value.
(props: NumberRollProps): ReactElement<any, string | JSXElementConstructor<any>>RotatingWordscomponentT06 — rotating words. Server markup: the first word (and the full list for assistive technology).
(props: RotatingWordsProps): ReactElement<any, string | JSXElementConstructor<any>>ScrambleTextcomponentT03 — scramble / decode.
(props: ScrambleTextProps): ReactElement<any, string | JSXElementConstructor<any>>TextMaskcomponentT09 — text mask reveal.
(props: TextMaskProps): ReactElement<any, string | JSXElementConstructor<any>>TextRevealcomponentT01 — split reveal.
(props: TextRevealProps): ReactElement<any, string | JSXElementConstructor<any>>TypewritercomponentT02 — typewriter.
(props: TypewriterProps): ReactElement<any, string | JSXElementConstructor<any>>WaveTextcomponentT07 — kinetic wave.
(props: WaveTextProps): ReactElement<any, string | JSXElementConstructor<any>>createFontAxesfunction(element: HTMLElement, options: FontAxesOptions): FontAxesControlcreateGradientSweepfunction(element: HTMLElement, options?: GradientSweepOptions | undefined): LoopEffectControlcreateHighlighterfunction(element: HTMLElement, options?: HighlighterOptions | undefined): ProgressControlcreateLineRevealfunctionT11 — reveal a text line by line from a scroll (or any 0–1) progress source.
(element: HTMLElement, options?: LineRevealOptions | undefined): ProgressControlcreateNumberRollfunction(element: HTMLElement, options: NumberRollOptions): NumberRollControlcreateRotatingWordsfunction(element: HTMLElement, options: RotatingWordsOptions): RotatingWordsControlcreateScramblefunction(element: HTMLElement, options?: ScrambleOptions | undefined): ProgressControlcreateTextMaskfunction(element: HTMLElement, options?: TextMaskOptions | undefined): ProgressControlcreateTextRevealfunctionT01 — reveal the pieces of a text (chars, words or lines).
(element: HTMLElement, options?: TextRevealOptions | undefined): ProgressControlcreateTextWavefunction(element: HTMLElement, options?: TextWaveOptions | undefined): LoopEffectControlcreateTypewriterfunction(element: HTMLElement, options?: TypewriterOptions | undefined): TypewriterControlfontVariationSupportedfunction(): booleangetSegmenterSupportfunction(): { grapheme: boolean; word: boolean; }getTextDebugInfofunctionSnapshot of the text counters (development and tests).
(): TextDebugInfogetTextSupportfunction(): TextSupportsegmentGraphemesfunction(text: string, locale?: string | undefined): string[]segmentWordsfunctionWords with attached punctuation (`Hello,` · `«Hola»`) and whitespace runs. Leading punctuation joins the next word, trailing punctuation the previous one; a punctuation-only text is one piece.
(text: string, locale?: string | undefined): WordSegment[]splitTextfunctionSplit an element's text into accessible, animatable pieces (contracts/text-splitter.md §2).
(element: HTMLElement, options?: SplitTextOptions | undefined): SplitTextuseSplitTextfunction`useSplitText(ref, options)` — split an element you render yourself; reverted on cleanup.
(ref: RefObject<HTMLElement | null>, options?: SplitTextOptions | undefined, content?: unknown): RefObject<SplitText | null>FontAxesControlinterfaceFontAxesControl
FontAxesControl Prop Tipo Predeterminado Descripció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— — to(obligatoria) (axes: FontAxes) => Promise<unknown>— Animate from the current values to new targets. track(obligatoria) (options?: ProgressTrackOptions) => ProgressTrack— A value track for createTimeline().add(…): the timeline clock drives this effect.FontAxesOptionsinterfaceFontAxesOptions
FontAxesOptions Prop Tipo Predeterminado Descripción duration number— ms (0–10000; por defecto según el efecto). easing Easing | EasingPreset— — from(obligatoria) FontAxes— — onComplete (result: MotionResult) => void— — progress ProgressSource— Dirige el efecto con una fuente de 0 a 1 ( ScrollProgress, valor de movimiento…) en lugar de su reloj.reducedMotion ReducedMotion— — to(obligatoria) FontAxes— — trigger TextTrigger"visible"Cuándo se ejecuta solo el efecto (por defecto "visible"). Se ignora conprogress.GradientSweepOptionsinterfaceGradientSweepOptions
GradientSweepOptions Prop Tipo Predeterminado Descripción angle number100Ángulo del degradado en grados (por defecto 100). color stringvar(--neshel-primary, #6366f1)Color del resalte (CSS; por defecto var(--neshel-primary, #6366f1)).duration number— Un ciclo, ms (por defecto según el efecto). onComplete () => void— — reducedMotion ReducedMotion— — repeat number— Ciclos extra (0–1000 o Infinity, explícito).trigger TextTrigger"visible"visible/mountinician el bucle al crearse (por defecto"visible");manualespera aplay().width number— Semiancho de la banda como fracción del elemento (0.05–0.5; por defecto 0.25). HighlighterOptionsinterfaceHighlighterOptions
HighlighterOptions Prop Tipo Predeterminado Descripción color string— Color de la banda (CSS; por defecto amarillo translúcido, --neshel-highlight-color).duration number— ms (0–10000; por defecto según el efecto). easing Easing | EasingPreset— — onComplete (result: MotionResult) => void— — progress ProgressSource— Dirige el efecto con una fuente de 0 a 1 ( ScrollProgress, valor de movimiento…) en lugar de su reloj.reducedMotion ReducedMotion— — trigger TextTrigger"visible"Cuándo se ejecuta solo el efecto (por defecto "visible"). Se ignora conprogress.variant "marker" | "underline"— "marker"(por defecto; casi toda la altura de línea) o"underline"(una banda baja).LineRevealOptionsinterfaceLineRevealOptions
LineRevealOptions Prop Tipo Predeterminado Descripción distance string"0.6em"Longitud CSS del desplazamiento (por defecto "0.6em").duration number— ms (0–10000; por defecto según el efecto). easing Easing | EasingPreset— — locale string— — maxPieces number— — mode "scrub" | "enter"— "scrub"(por defecto): las líneas siguen la fuente;"enter": se ejecuta una vez al superarthreshold.onComplete (result: MotionResult) => void— — order RevealOrder"start"Por defecto "start".reducedMotion ReducedMotion— — seed number— Semilla de order: "random"(determinista).source ProgressSource— Fuente de progreso de 0 a 1; obligatoria con scrub, opcional conenter(por defecto IntersectionObserver).stagger number— Solapamiento entre piezas: 0 (a la vez) … 1 (una tras otra); por defecto 0.2. threshold number0.25Umbral de enter0–1 (por defecto 0.25).variant RevealVariant"fade-up"Por defecto "fade-up".LoopEffectControlinterfaceLoopEffectControl
Control of a continuous effect (loop) — also seekable, timeline- and source-driven.
LoopEffectControl Prop Tipo Predeterminado Descripción destroy(obligatoria) () => void— — drive(obligatoria) (source: ProgressSource) => () => void— Follow a 0–1 source (own clock paused); returns the unsubscribe. pause(obligatoria) () => void— — play(obligatoria) () => void— — progress(obligatoria) number— Progress 0–1 of the whole run (of one cycle when repeatisInfinity).seek(obligatoria) (progress: number) => void— — state(obligatoria) LoopState— — stop(obligatoria) () => void— Stop and show the rest state. track(obligatoria) (options?: ProgressTrackOptions) => ProgressTrack— A value track for createTimeline().add(…)(finite runs; one cycle when infinite).LoopTextOptionsinterfaceLoopTextOptions
LoopTextOptions Prop Tipo Predeterminado Descripción duration number— Un ciclo, ms (por defecto según el efecto). onComplete () => void— — reducedMotion ReducedMotion— — repeat number— Ciclos extra (0–1000 o Infinity, explícito).trigger TextTrigger"visible"visible/mountinician el bucle al crearse (por defecto"visible");manualespera aplay().NumberRollControlinterfaceNumberRollControl
NumberRollControl Prop Tipo Predeterminado Descripción destroy(obligatoria) () => void— — finished(obligatoria) Promise<MotionResult>— — set(obligatoria) (value: number | bigint, options?: { animate?: boolean; }) => Promise<MotionResult>— Roll to a new value ( animate: falsejumps).text(obligatoria) string— The accessible (formatted) text. value(obligatoria) number | bigint— — NumberRollOptionsinterfaceNumberRollOptions
NumberRollOptions Prop Tipo Predeterminado Descripción duration number800ms (por defecto 800). easing Easing | EasingPreset— — format Intl.NumberFormatOptions— — locale string— — reducedMotion ReducedMotion— — value(obligatoria) number | bigint— — ProgressControlinterfaceProgressControl
ProgressControl Prop Tipo Predeterminado Descripció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.ProgressSourceinterfaceProgressSource
Any 0–1 progress source (the 011
ScrollProgressand motion values fit).ProgressSource Prop Tipo Predeterminado Descripción get(obligatoria) () => number— — subscribe(obligatoria) (listener: (progress: number) => void) => () => void— — RotatingWordsControlinterfaceRotatingWordsControl
RotatingWordsControl Prop Tipo Predeterminado Descripción destroy(obligatoria) () => void— — drive(obligatoria) (source: ProgressSource) => () => void— Follow a 0–1 source (own clock paused); returns the unsubscribe. index(obligatoria) number— Index of the word currently shown. pause(obligatoria) () => void— — play(obligatoria) () => void— — progress(obligatoria) number— Progress 0–1 of the whole run (of one cycle when repeatisInfinity).seek(obligatoria) (progress: number) => void— — state(obligatoria) LoopState— — stop(obligatoria) () => void— Stop and show the rest state. track(obligatoria) (options?: ProgressTrackOptions) => ProgressTrack— A value track for createTimeline().add(…)(finite runs; one cycle when infinite).RotatingWordsOptionsinterfaceRotatingWordsOptions
RotatingWordsOptions Prop Tipo Predeterminado Descripción accessibleText string— Texto accesible (por defecto: las palabras unidas con ", "). duration number— ms de la transición (0–2000; por defecto 450). interval number— ms que permanece cada palabra (1000–20000; por defecto 2500). onComplete () => void— — pauseOnHover booleantruePausa con hover o foco (por defecto true). reducedMotion ReducedMotion— — repeat number— Ciclos extra (0–1000 o Infinity, explícito).trigger TextTrigger"visible"visible/mountinician el bucle al crearse (por defecto"visible");manualespera aplay().variant "slide-up" | "slide-down" | "fade"— — words(obligatoria) readonly string[]— — ScrambleOptionsinterfaceScrambleOptions
ScrambleOptions Prop Tipo Predeterminado Descripción charset string— Glifos mostrados al descifrar (divididos en grafemas; por defecto letras, dígitos y símbolos). duration number— ms (0–10000; por defecto según el efecto). easing Easing | EasingPreset— — locale string— — maxPieces number— — onComplete (result: MotionResult) => void— — progress ProgressSource— Dirige el efecto con una fuente de 0 a 1 ( ScrollProgress, valor de movimiento…) en lugar de su reloj.rate number— Cambios de glifo por segundo (1–60; por defecto 24). reducedMotion ReducedMotion— — seed number1Semilla de la secuencia de glifos (por defecto 1). trigger TextTrigger"visible"Cuándo se ejecuta solo el efecto (por defecto "visible"). Se ignora conprogress.SplitTextinterfaceSplitText
SplitText Prop Tipo Predeterminado Descripción lines(obligatoria) readonly HTMLElement[]— — onChange(obligatoria) (listener: () => void) => () => void— — pieces(obligatoria) readonly HTMLElement[]— Animated unit in reading order (chars, words or lines). reason(obligatoria) string | undefined— — refresh(obligatoria) () => void— — revert(obligatoria) () => void— — root(obligatoria) HTMLElement | null— — split(obligatoria) SplitGranularity— — state(obligatoria) "split" | "unsupported" | "reverted"— — text(obligatoria) string— The accessible text. words(obligatoria) readonly HTMLElement[]— — SplitTextOptionsinterfaceSplitTextOptions
SplitTextOptions Prop Tipo Predeterminado Descripción locale string— Default: the closest [lang]of the element, else the document language.maxPieces number— Maximum animated pieces (default 1000, 1–5000; TextReveal and TextWave default to 200, K-5): chars degrade to words, words to lines above it. split SplitGranularity"words"Default "words".charsandlinesalways contain word pieces.TextDebugInfointerfaceTextDebugInfo
TextDebugInfo Prop Tipo Predeterminado Descripción effects(obligatoria) number— — observers(obligatoria) number— — reads(obligatoria) number— — resplits(obligatoria) number— — splits(obligatoria) number— — TextEffectOptionsinterfaceTextEffectOptions
TextEffectOptions Prop Tipo Predeterminado Descripción duration number— ms (0–10000; por defecto según el efecto). easing Easing | EasingPreset— — onComplete (result: MotionResult) => void— — progress ProgressSource— Dirige el efecto con una fuente de 0 a 1 ( ScrollProgress, valor de movimiento…) en lugar de su reloj.reducedMotion ReducedMotion— — trigger TextTrigger"visible"Cuándo se ejecuta solo el efecto (por defecto "visible"). Se ignora conprogress.TextMaskOptionsinterfaceTextMaskOptions
TextMaskOptions Prop Tipo Predeterminado Descripción duration number— ms (0–10000; por defecto según el efecto). easing Easing | EasingPreset— — locale string— — onComplete (result: MotionResult) => void— — progress ProgressSource— Dirige el efecto con una fuente de 0 a 1 ( ScrollProgress, valor de movimiento…) en lugar de su reloj.reducedMotion ReducedMotion— — scope "lines" | "element"— — stagger number0.25Solapamiento de líneas 0–1 (por defecto 0.25). trigger TextTrigger"visible"Cuándo se ejecuta solo el efecto (por defecto "visible"). Se ignora conprogress.variant "rise" | "wipe"— — TextRevealOptionsinterfaceTextRevealOptions
TextRevealOptions Prop Tipo Predeterminado Descripción distance string"0.6em"Longitud CSS del desplazamiento (por defecto "0.6em").duration number— ms (0–10000; por defecto según el efecto). easing Easing | EasingPreset— — locale string— — maxPieces number— — onComplete (result: MotionResult) => void— — order RevealOrder"start"Por defecto "start".progress ProgressSource— Dirige el efecto con una fuente de 0 a 1 ( ScrollProgress, valor de movimiento…) en lugar de su reloj.reducedMotion ReducedMotion— — seed number— Semilla de order: "random"(determinista).split SplitGranularity"words"Por defecto "words".stagger number— Solapamiento entre piezas: 0 (a la vez) … 1 (una tras otra); por defecto 0.2. trigger TextTrigger"visible"Cuándo se ejecuta solo el efecto (por defecto "visible"). Se ignora conprogress.variant RevealVariant"fade-up"Por defecto "fade-up".TextSupportinterfaceTextSupport
TextSupport Prop Tipo Predeterminado Descripción backgroundClipText(obligatoria) boolean— — clamp(obligatoria) boolean— — fontVariation(obligatoria) boolean— — mask(obligatoria) boolean— — segmenter(obligatoria) boolean— — trigonometry(obligatoria) boolean— — TextWaveOptionsinterfaceTextWaveOptions
TextWaveOptions Prop Tipo Predeterminado Descripción amplitude string"0.18em"Longitud CSS (por defecto "0.18em"; mantenla ≤ 0.5em).duration number— Un ciclo, ms (por defecto según el efecto). locale string— — maxPieces number— — onComplete () => void— — reducedMotion ReducedMotion— — repeat number— Ciclos extra (0–1000 o Infinity, explícito).spread number— Desfase entre grupos en radianes (0–3; por defecto 0.5). trigger TextTrigger"visible"visible/mountinician el bucle al crearse (por defecto"visible");manualespera aplay().TypewriterControlinterfaceTypewriterControl
TypewriterControl Prop Tipo Predeterminado Descripció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. restart(obligatoria) () => void— seek(0)thenplay().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.TypewriterOptionsinterfaceTypewriterOptions
TypewriterOptions Prop Tipo Predeterminado Descripción caret "typing" | "always" | "none"— "typing"(por defecto): cursor mientras escribe;"always": también en reposo;"none".duration number— ms (0–10000; por defecto según el efecto). easing Easing | EasingPreset— — locale string— — maxPieces number— — onComplete (result: MotionResult) => void— — progress ProgressSource— Dirige el efecto con una fuente de 0 a 1 ( ScrollProgress, valor de movimiento…) en lugar de su reloj.reducedMotion ReducedMotion— — speed number— Grafemas por segundo (1–200; por defecto 30). trigger TextTrigger"visible"Cuándo se ejecuta solo el efecto (por defecto "visible"). Se ignora conprogress.WordSegmentinterfaceWordSegment
Unicode segmentation (Phase 014; contracts/text-splitter.md §1, research R1).
Intl.Segmenterfirst: extended grapheme clusters (emoji ZWJ sequences, modifiers, flags, combining marks) and dictionary words for spaceless scripts. Without it, an approximate Unicode-property fallback (documented). Segments are lossless: their concatenation is always the input. UTF-16 code units are never treated as characters.WordSegment Prop Tipo Predeterminado Descripción space(obligatoria) boolean— A whitespace run — stays a plain text node between pieces. text(obligatoria) string— — wordLike(obligatoria) boolean— A word (with attached punctuation) — an animated piece. FontAxesPropstypeFontAxesProps
FontAxesProps Prop Tipo Predeterminado Descripción active boolean— trueanimates toto,falseback tofrom(default: play once on mount when undefined).as ElementType— Element to render (default per component; e.g. "h2","p").children ReactNode— — controlRef RefObject<C | null>— — duration number— ms (0–10000; por defecto según el efecto). easing Easing | EasingPreset— — from(obligatoria) FontAxes— — onComplete (result: MotionResult) => void— — progress ProgressSource— Dirige el efecto con una fuente de 0 a 1 ( ScrollProgress, valor de movimiento…) en lugar de su reloj.reducedMotion ReducedMotion— — to(obligatoria) FontAxes— — También acepta las props de: React DOM attributes.
FontAxesValuestypeRecord<string, number>GradientTextPropstypeGradientTextProps
GradientTextProps Prop Tipo Predeterminado Descripción angle number100Ángulo del degradado en grados (por defecto 100). as ElementType— Element to render (default per component; e.g. "h2","p").children ReactNode— — color stringvar(--neshel-primary, #6366f1)Color del resalte (CSS; por defecto var(--neshel-primary, #6366f1)).controlRef RefObject<C | null>— — duration number— Un ciclo, ms (por defecto según el efecto). onComplete () => void— — paused boolean— — reducedMotion ReducedMotion— — repeat number— Ciclos extra (0–1000 o Infinity, explícito).trigger TextTrigger"visible"visible/mountinician el bucle al crearse (por defecto"visible");manualespera aplay().width number— Semiancho de la banda como fracción del elemento (0.05–0.5; por defecto 0.25). También acepta las props de: React DOM attributes.
HighlightPropstypeHighlightProps
HighlightProps Prop Tipo Predeterminado Descripción as ElementType— Element to render (default per component; e.g. "h2","p").children ReactNode— — color string— Color de la banda (CSS; por defecto amarillo translúcido, --neshel-highlight-color).controlRef RefObject<C | null>— — duration number— ms (0–10000; por defecto según el efecto). easing Easing | EasingPreset— — onComplete (result: MotionResult) => void— — progress ProgressSource— Dirige el efecto con una fuente de 0 a 1 ( ScrollProgress, valor de movimiento…) en lugar de su reloj.reducedMotion ReducedMotion— — trigger TextTrigger"visible"Cuándo se ejecuta solo el efecto (por defecto "visible"). Se ignora conprogress.variant "marker" | "underline"— "marker"(por defecto; casi toda la altura de línea) o"underline"(una banda baja).También acepta las props de: React DOM attributes.
LineRevealPropstypeLineRevealProps
LineRevealProps Prop Tipo Predeterminado Descripción as ElementType— Element to render (default per component; e.g. "h2","p").children(obligatoria) string | number— — controlRef RefObject<C | null>— — distance string"0.6em"Longitud CSS del desplazamiento (por defecto "0.6em").duration number— ms (0–10000; por defecto según el efecto). easing Easing | EasingPreset— — locale string— — maxPieces number— — mode "scrub" | "enter"— "scrub"(por defecto): las líneas siguen la fuente;"enter": se ejecuta una vez al superarthreshold.onComplete (result: MotionResult) => void— — order RevealOrder"start"Por defecto "start".reducedMotion ReducedMotion— — seed number— Semilla de order: "random"(determinista).source ProgressSource— Fuente de progreso de 0 a 1; obligatoria con scrub, opcional conenter(por defecto IntersectionObserver).stagger number— Solapamiento entre piezas: 0 (a la vez) … 1 (una tras otra); por defecto 0.2. threshold number0.25Umbral de enter0–1 (por defecto 0.25).variant RevealVariant"fade-up"Por defecto "fade-up".También acepta las props de: React DOM attributes.
NumberRollPropstypeNumberRollProps
NumberRollProps Prop Tipo Predeterminado Descripción as ElementType— Element to render (default per component; e.g. "h2","p").controlRef RefObject<C | null>— — duration number800ms (por defecto 800). easing Easing | EasingPreset— — format Intl.NumberFormatOptions— — locale string— — reducedMotion ReducedMotion— — value(obligatoria) number | bigint— — También acepta las props de: React DOM attributes.
RevealOrdertype"start" | "end" | "center" | "random"RevealVarianttype"fade-up" | "fade" | "fade-down" | "blur" | "scale"RotatingWordsPropstypeRotatingWordsProps
RotatingWordsProps Prop Tipo Predeterminado Descripción accessibleText string— Texto accesible (por defecto: las palabras unidas con ", "). as ElementType— Element to render (default per component; e.g. "h2","p").controlRef RefObject<C | null>— — duration number— ms de la transición (0–2000; por defecto 450). interval number— ms que permanece cada palabra (1000–20000; por defecto 2500). onComplete () => void— — pauseOnHover booleantruePausa con hover o foco (por defecto true). paused boolean— — reducedMotion ReducedMotion— — repeat number— Ciclos extra (0–1000 o Infinity, explícito).trigger TextTrigger"visible"visible/mountinician el bucle al crearse (por defecto"visible");manualespera aplay().variant "slide-up" | "slide-down" | "fade"— — words(obligatoria) readonly string[]— — También acepta las props de: React DOM attributes.
ScrambleTextPropstypeScrambleTextProps
ScrambleTextProps Prop Tipo Predeterminado Descripción as ElementType— Element to render (default per component; e.g. "h2","p").charset string— Glifos mostrados al descifrar (divididos en grafemas; por defecto letras, dígitos y símbolos). children(obligatoria) string | number— — controlRef RefObject<C | null>— — duration number— ms (0–10000; por defecto según el efecto). easing Easing | EasingPreset— — locale string— — maxPieces number— — onComplete (result: MotionResult) => void— — progress ProgressSource— Dirige el efecto con una fuente de 0 a 1 ( ScrollProgress, valor de movimiento…) en lugar de su reloj.rate number— Cambios de glifo por segundo (1–60; por defecto 24). reducedMotion ReducedMotion— — seed number1Semilla de la secuencia de glifos (por defecto 1). trigger TextTrigger"visible"Cuándo se ejecuta solo el efecto (por defecto "visible"). Se ignora conprogress.También acepta las props de: React DOM attributes.
SplitGranularitytype"chars" | "words" | "lines"TextMaskPropstypeTextMaskProps
TextMaskProps Prop Tipo Predeterminado Descripción as ElementType— Element to render (default per component; e.g. "h2","p").children(obligatoria) string | number— — controlRef RefObject<C | null>— — duration number— ms (0–10000; por defecto según el efecto). easing Easing | EasingPreset— — locale string— — onComplete (result: MotionResult) => void— — progress ProgressSource— Dirige el efecto con una fuente de 0 a 1 ( ScrollProgress, valor de movimiento…) en lugar de su reloj.reducedMotion ReducedMotion— — scope "lines" | "element"— — stagger number0.25Solapamiento de líneas 0–1 (por defecto 0.25). trigger TextTrigger"visible"Cuándo se ejecuta solo el efecto (por defecto "visible"). Se ignora conprogress.variant "rise" | "wipe"— — También acepta las props de: React DOM attributes.
TextRevealPropstypeTextRevealProps
TextRevealProps Prop Tipo Predeterminado Descripción as ElementType— Element to render (default per component; e.g. "h2","p").children(obligatoria) string | number— — controlRef RefObject<C | null>— — distance string"0.6em"Longitud CSS del desplazamiento (por defecto "0.6em").duration number— ms (0–10000; por defecto según el efecto). easing Easing | EasingPreset— — locale string— — maxPieces number— — onComplete (result: MotionResult) => void— — order RevealOrder"start"Por defecto "start".progress ProgressSource— Dirige el efecto con una fuente de 0 a 1 ( ScrollProgress, valor de movimiento…) en lugar de su reloj.reducedMotion ReducedMotion— — seed number— Semilla de order: "random"(determinista).split SplitGranularity"words"Por defecto "words".stagger number— Solapamiento entre piezas: 0 (a la vez) … 1 (una tras otra); por defecto 0.2. trigger TextTrigger"visible"Cuándo se ejecuta solo el efecto (por defecto "visible"). Se ignora conprogress.variant RevealVariant"fade-up"Por defecto "fade-up".También acepta las props de: React DOM attributes.
TextTriggertype"visible" | "mount" | "manual"TypewriterPropstypeTypewriterProps
TypewriterProps Prop Tipo Predeterminado Descripción as ElementType— Element to render (default per component; e.g. "h2","p").caret "typing" | "always" | "none"— "typing"(por defecto): cursor mientras escribe;"always": también en reposo;"none".children(obligatoria) string | number— — controlRef RefObject<C | null>— — duration number— ms (0–10000; por defecto según el efecto). easing Easing | EasingPreset— — locale string— — maxPieces number— — onComplete (result: MotionResult) => void— — progress ProgressSource— Dirige el efecto con una fuente de 0 a 1 ( ScrollProgress, valor de movimiento…) en lugar de su reloj.reducedMotion ReducedMotion— — speed number— Grafemas por segundo (1–200; por defecto 30). trigger TextTrigger"visible"Cuándo se ejecuta solo el efecto (por defecto "visible"). Se ignora conprogress.También acepta las props de: React DOM attributes.
WaveTextPropstypeWaveTextProps
WaveTextProps Prop Tipo Predeterminado Descripción amplitude string"0.18em"Longitud CSS (por defecto "0.18em"; mantenla ≤ 0.5em).as ElementType— Element to render (default per component; e.g. "h2","p").children(obligatoria) string | number— — controlRef RefObject<C | null>— — duration number— Un ciclo, ms (por defecto según el efecto). locale string— — maxPieces number— — onComplete () => void— — paused boolean— — reducedMotion ReducedMotion— — repeat number— Ciclos extra (0–1000 o Infinity, explícito).spread number— Desfase entre grupos en radianes (0–3; por defecto 0.5). trigger TextTrigger"visible"visible/mountinician el bucle al crearse (por defecto"visible");manualespera aplay().También acepta las props de: React DOM attributes.