Skip to content

2 variants

Text Animations

Color sweeps and reveals for headlines and labels.

Dia text reveal

A color band sweeps across text once, left to right, then settles on the theme foreground color.

Build something beautiful

Install

$ bunx --bun shadcn add @easeui-pro/dia-text-reveal

Props

textRequiredstring

The words the color band sweeps across.

colorsstring[]Default the theme accents

Sampled across the band, left to right.

textColorstringDefault var(--foreground)

What the text settles to once the band has passed.

durationnumberDefault 1.4

Sweep length, in seconds.

delaynumberDefault 0

Wait before the sweep starts, in seconds.

repeatbooleanDefault false

Loops the sweep instead of running it once.

repeatDelaynumberDefault 1

Pause between sweeps, in seconds. Only used when repeat is on.

startOnViewbooleanDefault true

Holds the sweep until the text scrolls into view, so it is not already over by the time it is read.

classNamestring

Merged last, so anything passed here wins over the component's own classes.

Text highlight

A marker stroke that draws itself across text once, as a highlight behind it or a wavy underline beneath it.

Ship your next idea with a marker touch.

Install

$ bunx --bun shadcn add @easeui-pro/text-highlight

Props

childrenRequiredReactNode

The text the mark is drawn across.

action"highlight" | "underline"Default "highlight"

A marker box behind the text, or a wavy stroke beneath it.

colorstringDefault var(--accent)

Marker color.

durationnumberDefault 0.7

Draw length, in seconds.

delaynumberDefault 0

Wait before the draw starts, in seconds.

startOnViewbooleanDefault true

Holds the draw until the text scrolls into view.

classNamestring

Merged last, so anything passed here wins over the component's own classes.