Account

Typography

Creative

Glitch Text

Slices tear sideways while offset copies split into channels. For error pages, game titles and system moments. Monochrome with chroma off.

Install

Included with Creative: needs your API key. Initialize and log in once.

Terminal
npx @galactrex/ui add glitch-text

Usage

Example
import { GlitchText } from "@/components/galactrex/glitch-text";

<GlitchText as="h1" text="SIGNAL LOST" />

Source

Installs to components/galactrex/glitch-text.tsx, with the shared motion primitives beside it.

Source for this component comes with its plan. Install it with the command above, or open your licensed copy here.

See plans

Props

PropTypeDefaultDescription
textstring—The text.
asElementType"span"Element.
trigger"hover" | "interval" | "always""interval"When it glitches.
everynumber3.5Seconds between bursts.
intensitynumber6Tear distance in px.
chromabooleantrueSplit colour channels.
classNamestring—Extra classes for the outer element.

Variants

  • Burst. Every few seconds.
  • Mono. `chroma={false}`.

Accessibility

  • The real text sits underneath; copies are aria-hidden.
  • Avoid `always` near reading text.

Motion and reduced motion

  • Clip-path slices at 16 fps during bursts; pauses offscreen.
  • Reduced motion: no glitch.