@neshel-ui/animations/text
Every export of @neshel-ui/animations/text, 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.
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 Type Default Description cancel(required) () => void— — destroy(required) () => void— Idempotent: stops, releases and restores. drive(required) (source: ProgressSource) => () => void— Follow a 0–1 source instead of the own clock; returns the unsubscribe. finish(required) () => void— — finished(required) Promise<MotionResult>— Promise of the current (or next) run. pause(required) () => void— — play(required) () => void— — progress(required) number— Rendered progress 0–1. reverse(required) () => void— — seek(required) (progress: number) => void— Render the effect at a time fraction 0–1 of its run (eased). state(required) MotionState— — to(required) (axes: FontAxes) => Promise<unknown>— Animate from the current values to new targets. track(required) (options?: ProgressTrackOptions) => ProgressTrack— A value track for createTimeline().add(…): the timeline clock drives this effect.FontAxesOptionsinterfaceFontAxesOptions
FontAxesOptions Prop Type Default Description duration number— ms (0–10000; default per effect). easing Easing | EasingPreset— — from(required) FontAxes— — onComplete (result: MotionResult) => void— — progress ProgressSource— Drive the effect from a 0–1 source ( ScrollProgress, motion value, …) instead of its clock.reducedMotion ReducedMotion— — to(required) FontAxes— — trigger TextTrigger"visible"When the effect plays by itself (default "visible"). Ignored withprogress.GradientSweepOptionsinterfaceGradientSweepOptions
GradientSweepOptions Prop Type Default Description angle number100Gradient angle in degrees (default 100). color stringvar(--neshel-primary, #6366f1)Highlight colour (CSS; default var(--neshel-primary, #6366f1)).duration number— One cycle, ms (default per effect). onComplete () => void— — reducedMotion ReducedMotion— — repeat number— Extra cycles (0–1000 or Infinity, explicit).trigger TextTrigger"visible"visible/mountstart the loop on creation (default"visible");manualwaits forplay().width number— Band half-width as a fraction of the element (0.05–0.5; default 0.25). HighlighterOptionsinterfaceHighlighterOptions
HighlighterOptions Prop Type Default Description color string— Band colour (CSS; default translucent yellow, --neshel-highlight-color).duration number— ms (0–10000; default per effect). easing Easing | EasingPreset— — onComplete (result: MotionResult) => void— — progress ProgressSource— Drive the effect from a 0–1 source ( ScrollProgress, motion value, …) instead of its clock.reducedMotion ReducedMotion— — trigger TextTrigger"visible"When the effect plays by itself (default "visible"). Ignored withprogress.variant "marker" | "underline"— "marker"(default; most of the line height) or"underline"(a low band).LineRevealOptionsinterfaceLineRevealOptions
LineRevealOptions Prop Type Default Description distance string"0.6em"CSS length of the slide (default "0.6em").duration number— ms (0–10000; default per effect). easing Easing | EasingPreset— — locale string— — maxPieces number— — mode "scrub" | "enter"— "scrub"(default): lines follow the source;"enter": play once pastthreshold.onComplete (result: MotionResult) => void— — order RevealOrder"start"Default "start".reducedMotion ReducedMotion— — seed number— Seed of order: "random"(deterministic).source ProgressSource— 0–1 progress source; required for scrub, optional forenter(default IntersectionObserver).stagger number— Overlap between pieces: 0 (together) … 1 (one after another); default 0.2. threshold number0.25enterthreshold 0–1 (default 0.25).variant RevealVariant"fade-up"Default "fade-up".LoopEffectControlinterfaceLoopEffectControl
Control of a continuous effect (loop) — also seekable, timeline- and source-driven.
LoopEffectControl Prop Type Default Description destroy(required) () => void— — drive(required) (source: ProgressSource) => () => void— Follow a 0–1 source (own clock paused); returns the unsubscribe. pause(required) () => void— — play(required) () => void— — progress(required) number— Progress 0–1 of the whole run (of one cycle when repeatisInfinity).seek(required) (progress: number) => void— — state(required) LoopState— — stop(required) () => void— Stop and show the rest state. track(required) (options?: ProgressTrackOptions) => ProgressTrack— A value track for createTimeline().add(…)(finite runs; one cycle when infinite).LoopTextOptionsinterfaceLoopTextOptions
LoopTextOptions Prop Type Default Description duration number— One cycle, ms (default per effect). onComplete () => void— — reducedMotion ReducedMotion— — repeat number— Extra cycles (0–1000 or Infinity, explicit).trigger TextTrigger"visible"visible/mountstart the loop on creation (default"visible");manualwaits forplay().NumberRollControlinterfaceNumberRollControl
NumberRollControl Prop Type Default Description destroy(required) () => void— — finished(required) Promise<MotionResult>— — set(required) (value: number | bigint, options?: { animate?: boolean; }) => Promise<MotionResult>— Roll to a new value ( animate: falsejumps).text(required) string— The accessible (formatted) text. value(required) number | bigint— — NumberRollOptionsinterfaceNumberRollOptions
NumberRollOptions Prop Type Default Description duration number800ms (default 800). easing Easing | EasingPreset— — format Intl.NumberFormatOptions— — locale string— — reducedMotion ReducedMotion— — value(required) number | bigint— — ProgressControlinterfaceProgressControl
ProgressControl Prop Type Default Description cancel(required) () => void— — destroy(required) () => void— Idempotent: stops, releases and restores. drive(required) (source: ProgressSource) => () => void— Follow a 0–1 source instead of the own clock; returns the unsubscribe. finish(required) () => void— — finished(required) Promise<MotionResult>— Promise of the current (or next) run. pause(required) () => void— — play(required) () => void— — progress(required) number— Rendered progress 0–1. reverse(required) () => void— — seek(required) (progress: number) => void— Render the effect at a time fraction 0–1 of its run (eased). state(required) MotionState— — track(required) (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 Type Default Description get(required) () => number— — subscribe(required) (listener: (progress: number) => void) => () => void— — RotatingWordsControlinterfaceRotatingWordsControl
RotatingWordsControl Prop Type Default Description destroy(required) () => void— — drive(required) (source: ProgressSource) => () => void— Follow a 0–1 source (own clock paused); returns the unsubscribe. index(required) number— Index of the word currently shown. pause(required) () => void— — play(required) () => void— — progress(required) number— Progress 0–1 of the whole run (of one cycle when repeatisInfinity).seek(required) (progress: number) => void— — state(required) LoopState— — stop(required) () => void— Stop and show the rest state. track(required) (options?: ProgressTrackOptions) => ProgressTrack— A value track for createTimeline().add(…)(finite runs; one cycle when infinite).RotatingWordsOptionsinterfaceRotatingWordsOptions
RotatingWordsOptions Prop Type Default Description accessibleText string— Accessible text (default: the words joined by ", "). duration number— Swap transition ms (0–2000; default 450). interval number— ms each word stays (1000–20000; default 2500). onComplete () => void— — pauseOnHover booleantruePause while hovered or focused (default true). reducedMotion ReducedMotion— — repeat number— Extra cycles (0–1000 or Infinity, explicit).trigger TextTrigger"visible"visible/mountstart the loop on creation (default"visible");manualwaits forplay().variant "slide-up" | "slide-down" | "fade"— — words(required) readonly string[]— — ScrambleOptionsinterfaceScrambleOptions
ScrambleOptions Prop Type Default Description charset string— Glyphs shown while decoding (split into graphemes; default letters, digits and symbols). duration number— ms (0–10000; default per effect). easing Easing | EasingPreset— — locale string— — maxPieces number— — onComplete (result: MotionResult) => void— — progress ProgressSource— Drive the effect from a 0–1 source ( ScrollProgress, motion value, …) instead of its clock.rate number— Glyph changes per second (1–60; default 24). reducedMotion ReducedMotion— — seed number1Seed of the glyph sequence (default 1). trigger TextTrigger"visible"When the effect plays by itself (default "visible"). Ignored withprogress.SplitTextinterfaceSplitText
SplitText Prop Type Default Description lines(required) readonly HTMLElement[]— — onChange(required) (listener: () => void) => () => void— — pieces(required) readonly HTMLElement[]— Animated unit in reading order (chars, words or lines). reason(required) string | undefined— — refresh(required) () => void— — revert(required) () => void— — root(required) HTMLElement | null— — split(required) SplitGranularity— — state(required) "split" | "unsupported" | "reverted"— — text(required) string— The accessible text. words(required) readonly HTMLElement[]— — SplitTextOptionsinterfaceSplitTextOptions
SplitTextOptions Prop Type Default Description 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 Type Default Description effects(required) number— — observers(required) number— — reads(required) number— — resplits(required) number— — splits(required) number— — TextEffectOptionsinterfaceTextEffectOptions
TextEffectOptions Prop Type Default Description duration number— ms (0–10000; default per effect). easing Easing | EasingPreset— — onComplete (result: MotionResult) => void— — progress ProgressSource— Drive the effect from a 0–1 source ( ScrollProgress, motion value, …) instead of its clock.reducedMotion ReducedMotion— — trigger TextTrigger"visible"When the effect plays by itself (default "visible"). Ignored withprogress.TextMaskOptionsinterfaceTextMaskOptions
TextMaskOptions Prop Type Default Description duration number— ms (0–10000; default per effect). easing Easing | EasingPreset— — locale string— — onComplete (result: MotionResult) => void— — progress ProgressSource— Drive the effect from a 0–1 source ( ScrollProgress, motion value, …) instead of its clock.reducedMotion ReducedMotion— — scope "lines" | "element"— — stagger number0.25Line overlap 0–1 (default 0.25). trigger TextTrigger"visible"When the effect plays by itself (default "visible"). Ignored withprogress.variant "rise" | "wipe"— — TextRevealOptionsinterfaceTextRevealOptions
TextRevealOptions Prop Type Default Description distance string"0.6em"CSS length of the slide (default "0.6em").duration number— ms (0–10000; default per effect). easing Easing | EasingPreset— — locale string— — maxPieces number— — onComplete (result: MotionResult) => void— — order RevealOrder"start"Default "start".progress ProgressSource— Drive the effect from a 0–1 source ( ScrollProgress, motion value, …) instead of its clock.reducedMotion ReducedMotion— — seed number— Seed of order: "random"(deterministic).split SplitGranularity"words"Default "words".stagger number— Overlap between pieces: 0 (together) … 1 (one after another); default 0.2. trigger TextTrigger"visible"When the effect plays by itself (default "visible"). Ignored withprogress.variant RevealVariant"fade-up"Default "fade-up".TextSupportinterfaceTextSupport
TextSupport Prop Type Default Description backgroundClipText(required) boolean— — clamp(required) boolean— — fontVariation(required) boolean— — mask(required) boolean— — segmenter(required) boolean— — trigonometry(required) boolean— — TextWaveOptionsinterfaceTextWaveOptions
TextWaveOptions Prop Type Default Description amplitude string"0.18em"CSS length (default "0.18em"; keep ≤ 0.5em).duration number— One cycle, ms (default per effect). locale string— — maxPieces number— — onComplete () => void— — reducedMotion ReducedMotion— — repeat number— Extra cycles (0–1000 or Infinity, explicit).spread number— Phase offset between clusters in radians (0–3; default 0.5). trigger TextTrigger"visible"visible/mountstart the loop on creation (default"visible");manualwaits forplay().TypewriterControlinterfaceTypewriterControl
TypewriterControl Prop Type Default Description cancel(required) () => void— — destroy(required) () => void— Idempotent: stops, releases and restores. drive(required) (source: ProgressSource) => () => void— Follow a 0–1 source instead of the own clock; returns the unsubscribe. finish(required) () => void— — finished(required) Promise<MotionResult>— Promise of the current (or next) run. pause(required) () => void— — play(required) () => void— — progress(required) number— Rendered progress 0–1. restart(required) () => void— seek(0)thenplay().reverse(required) () => void— — seek(required) (progress: number) => void— Render the effect at a time fraction 0–1 of its run (eased). state(required) MotionState— — track(required) (options?: ProgressTrackOptions) => ProgressTrack— A value track for createTimeline().add(…): the timeline clock drives this effect.TypewriterOptionsinterfaceTypewriterOptions
TypewriterOptions Prop Type Default Description caret "typing" | "always" | "none"— "typing"(default): caret while typing;"always": also at rest;"none".duration number— ms (0–10000; default per effect). easing Easing | EasingPreset— — locale string— — maxPieces number— — onComplete (result: MotionResult) => void— — progress ProgressSource— Drive the effect from a 0–1 source ( ScrollProgress, motion value, …) instead of its clock.reducedMotion ReducedMotion— — speed number— Graphemes per second (1–200; default 30). trigger TextTrigger"visible"When the effect plays by itself (default "visible"). Ignored withprogress.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 Type Default Description space(required) boolean— A whitespace run — stays a plain text node between pieces. text(required) string— — wordLike(required) boolean— A word (with attached punctuation) — an animated piece. FontAxesPropstypeFontAxesProps
FontAxesProps Prop Type Default Description 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; default per effect). easing Easing | EasingPreset— — from(required) FontAxes— — onComplete (result: MotionResult) => void— — progress ProgressSource— Drive the effect from a 0–1 source ( ScrollProgress, motion value, …) instead of its clock.reducedMotion ReducedMotion— — to(required) FontAxes— — Also accepts the props of: React DOM attributes.
FontAxesValuestypeRecord<string, number>GradientTextPropstypeGradientTextProps
GradientTextProps Prop Type Default Description angle number100Gradient angle in degrees (default 100). as ElementType— Element to render (default per component; e.g. "h2","p").children ReactNode— — color stringvar(--neshel-primary, #6366f1)Highlight colour (CSS; default var(--neshel-primary, #6366f1)).controlRef RefObject<C | null>— — duration number— One cycle, ms (default per effect). onComplete () => void— — paused boolean— — reducedMotion ReducedMotion— — repeat number— Extra cycles (0–1000 or Infinity, explicit).trigger TextTrigger"visible"visible/mountstart the loop on creation (default"visible");manualwaits forplay().width number— Band half-width as a fraction of the element (0.05–0.5; default 0.25). Also accepts the props of: React DOM attributes.
HighlightPropstypeHighlightProps
HighlightProps Prop Type Default Description as ElementType— Element to render (default per component; e.g. "h2","p").children ReactNode— — color string— Band colour (CSS; default translucent yellow, --neshel-highlight-color).controlRef RefObject<C | null>— — duration number— ms (0–10000; default per effect). easing Easing | EasingPreset— — onComplete (result: MotionResult) => void— — progress ProgressSource— Drive the effect from a 0–1 source ( ScrollProgress, motion value, …) instead of its clock.reducedMotion ReducedMotion— — trigger TextTrigger"visible"When the effect plays by itself (default "visible"). Ignored withprogress.variant "marker" | "underline"— "marker"(default; most of the line height) or"underline"(a low band).Also accepts the props of: React DOM attributes.
LineRevealPropstypeLineRevealProps
LineRevealProps Prop Type Default Description as ElementType— Element to render (default per component; e.g. "h2","p").children(required) string | number— — controlRef RefObject<C | null>— — distance string"0.6em"CSS length of the slide (default "0.6em").duration number— ms (0–10000; default per effect). easing Easing | EasingPreset— — locale string— — maxPieces number— — mode "scrub" | "enter"— "scrub"(default): lines follow the source;"enter": play once pastthreshold.onComplete (result: MotionResult) => void— — order RevealOrder"start"Default "start".reducedMotion ReducedMotion— — seed number— Seed of order: "random"(deterministic).source ProgressSource— 0–1 progress source; required for scrub, optional forenter(default IntersectionObserver).stagger number— Overlap between pieces: 0 (together) … 1 (one after another); default 0.2. threshold number0.25enterthreshold 0–1 (default 0.25).variant RevealVariant"fade-up"Default "fade-up".Also accepts the props of: React DOM attributes.
NumberRollPropstypeNumberRollProps
NumberRollProps Prop Type Default Description as ElementType— Element to render (default per component; e.g. "h2","p").controlRef RefObject<C | null>— — duration number800ms (default 800). easing Easing | EasingPreset— — format Intl.NumberFormatOptions— — locale string— — reducedMotion ReducedMotion— — value(required) number | bigint— — Also accepts the props of: React DOM attributes.
RevealOrdertype"start" | "end" | "center" | "random"RevealVarianttype"fade-up" | "fade" | "fade-down" | "blur" | "scale"RotatingWordsPropstypeRotatingWordsProps
RotatingWordsProps Prop Type Default Description accessibleText string— Accessible text (default: the words joined by ", "). as ElementType— Element to render (default per component; e.g. "h2","p").controlRef RefObject<C | null>— — duration number— Swap transition ms (0–2000; default 450). interval number— ms each word stays (1000–20000; default 2500). onComplete () => void— — pauseOnHover booleantruePause while hovered or focused (default true). paused boolean— — reducedMotion ReducedMotion— — repeat number— Extra cycles (0–1000 or Infinity, explicit).trigger TextTrigger"visible"visible/mountstart the loop on creation (default"visible");manualwaits forplay().variant "slide-up" | "slide-down" | "fade"— — words(required) readonly string[]— — Also accepts the props of: React DOM attributes.
ScrambleTextPropstypeScrambleTextProps
ScrambleTextProps Prop Type Default Description as ElementType— Element to render (default per component; e.g. "h2","p").charset string— Glyphs shown while decoding (split into graphemes; default letters, digits and symbols). children(required) string | number— — controlRef RefObject<C | null>— — duration number— ms (0–10000; default per effect). easing Easing | EasingPreset— — locale string— — maxPieces number— — onComplete (result: MotionResult) => void— — progress ProgressSource— Drive the effect from a 0–1 source ( ScrollProgress, motion value, …) instead of its clock.rate number— Glyph changes per second (1–60; default 24). reducedMotion ReducedMotion— — seed number1Seed of the glyph sequence (default 1). trigger TextTrigger"visible"When the effect plays by itself (default "visible"). Ignored withprogress.Also accepts the props of: React DOM attributes.
SplitGranularitytype"chars" | "words" | "lines"TextMaskPropstypeTextMaskProps
TextMaskProps Prop Type Default Description as ElementType— Element to render (default per component; e.g. "h2","p").children(required) string | number— — controlRef RefObject<C | null>— — duration number— ms (0–10000; default per effect). easing Easing | EasingPreset— — locale string— — onComplete (result: MotionResult) => void— — progress ProgressSource— Drive the effect from a 0–1 source ( ScrollProgress, motion value, …) instead of its clock.reducedMotion ReducedMotion— — scope "lines" | "element"— — stagger number0.25Line overlap 0–1 (default 0.25). trigger TextTrigger"visible"When the effect plays by itself (default "visible"). Ignored withprogress.variant "rise" | "wipe"— — Also accepts the props of: React DOM attributes.
TextRevealPropstypeTextRevealProps
TextRevealProps Prop Type Default Description as ElementType— Element to render (default per component; e.g. "h2","p").children(required) string | number— — controlRef RefObject<C | null>— — distance string"0.6em"CSS length of the slide (default "0.6em").duration number— ms (0–10000; default per effect). easing Easing | EasingPreset— — locale string— — maxPieces number— — onComplete (result: MotionResult) => void— — order RevealOrder"start"Default "start".progress ProgressSource— Drive the effect from a 0–1 source ( ScrollProgress, motion value, …) instead of its clock.reducedMotion ReducedMotion— — seed number— Seed of order: "random"(deterministic).split SplitGranularity"words"Default "words".stagger number— Overlap between pieces: 0 (together) … 1 (one after another); default 0.2. trigger TextTrigger"visible"When the effect plays by itself (default "visible"). Ignored withprogress.variant RevealVariant"fade-up"Default "fade-up".Also accepts the props of: React DOM attributes.
TextTriggertype"visible" | "mount" | "manual"TypewriterPropstypeTypewriterProps
TypewriterProps Prop Type Default Description as ElementType— Element to render (default per component; e.g. "h2","p").caret "typing" | "always" | "none"— "typing"(default): caret while typing;"always": also at rest;"none".children(required) string | number— — controlRef RefObject<C | null>— — duration number— ms (0–10000; default per effect). easing Easing | EasingPreset— — locale string— — maxPieces number— — onComplete (result: MotionResult) => void— — progress ProgressSource— Drive the effect from a 0–1 source ( ScrollProgress, motion value, …) instead of its clock.reducedMotion ReducedMotion— — speed number— Graphemes per second (1–200; default 30). trigger TextTrigger"visible"When the effect plays by itself (default "visible"). Ignored withprogress.Also accepts the props of: React DOM attributes.
WaveTextPropstypeWaveTextProps
WaveTextProps Prop Type Default Description amplitude string"0.18em"CSS length (default "0.18em"; keep ≤ 0.5em).as ElementType— Element to render (default per component; e.g. "h2","p").children(required) string | number— — controlRef RefObject<C | null>— — duration number— One cycle, ms (default per effect). locale string— — maxPieces number— — onComplete () => void— — paused boolean— — reducedMotion ReducedMotion— — repeat number— Extra cycles (0–1000 or Infinity, explicit).spread number— Phase offset between clusters in radians (0–3; default 0.5). trigger TextTrigger"visible"visible/mountstart the loop on creation (default"visible");manualwaits forplay().Also accepts the props of: React DOM attributes.