Text Animations

Specter

Spectral RGB-split echoes drift off the letters and dissolve into the dark.

Install

bun add motion clsx tailwind-merge

Then copy 2 files into your project:

  • components/registry/specter/specter.tsx
  • lib/utils.ts

Props

PropTypeDefaultDescription
ghostCountnumber3Number of spectral echoes.
driftnumber24How far each ghost drifts before dissolving.
speednumber1Drift and dissolve cycle speed.
anglenumber90Direction the ghosts drift toward.
staggernumber0.15Delay between successive emissions.
blurnumber2Ghost softness as it dissolves.
splitColor1string (hex)"#a855f7"Amethyst chromatic ghost.
splitColor2string (hex)"#22d3ee"Cyan chromatic ghost.

What It Demonstrates

Follow-through
Parts of an element keep moving and settle slightly after the main motion stops, adding weight.
Blur
A blur filter used to soften an element or mask tiny imperfections.
Loop
An animation that repeats, a set number of times or infinitely.
Idle animation
Subtle motion that plays while an element is just sitting there, waiting to be interacted with.

Related Components

Appears In