DiaText

Gradient sweep text reveal with repeat playback and rotating copy.

Installation

Basic

Make interfaces feel responsive.

Rotating Copy

Make systems feel smooth.

Width Control

Status: Queued

Custom Sweep

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.