DiaText

Gradient sweep text reveal with repeat playback and rotating copy.

Installation

This component is primitive-agnostic — same source under both flavors.

Basic

Inspect

Make interfaces feel responsive.

Rotating Copy

Inspect

Make systems feel smooth.

Width Control

Inspect

Status: Queued

Custom Sweep

Inspect
Gradient sweep

API Reference

PropTypeDefaultDescription
textstring | string[]A single string to reveal, or multiple strings to rotate through.
colorsstring[]built-in paletteGradient stops used for the moving sweep band.
textColorstring"var(--foreground)"Base text color before and after the sweep passes.
durationnumber1.5Duration of the sweep animation in seconds.
delaynumber0Delay before playback starts in seconds.
repeatbooleanfalseReplays the sweep and advances through text arrays when present.
repeatDelaynumber0.5Pause between repeat cycles in seconds.
triggerOnViewbooleantrueWaits for the text to enter the viewport before playback starts.
oncebooleantrueRuns the viewport-triggered reveal only once.
fixedWidthbooleanfalseUses the widest measured value while rotating through multiple strings.

Credits

DiaText adapts the gradient reveal behavior from Iconiq UI Dia Text.