Measured entry

animata-glitch-text

text-effectdark-futuristicmotion on file

A client-side React text effect that stacks two color-shifted, aria-hidden copies behind a readable base label and animates them with CSS transforms. It ships as a shadcn registry component with a TSX file and companion stylesheet, has no package dependencies, and relies on the project cn helper, path alias, CSS variables, and a Tailwind utility class.

Specimen
Motion capture of the mounted demo, recorded by the harness. No audio track.
Harness screenshot of animata-glitch-text at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of animata-glitch-text at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of animata-glitch-text at 1440 pixels wide
Harness screenshot at 1440 pixels wide. No horizontal overflow recorded.

Measured

Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.

Harness measurements recorded for animata-glitch-text
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal26.6 KB (92.0 KB build, 65.4 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten from the component source API

What the harness recorded

BARE BUILD

✗ Build failed in 32.77s
error during build:
[vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/components/animata/text/glitch-text.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'

Verdict

A focused, configurable effect with a readable top layer and sensible reduced-motion behavior. It builds and mounts in the prepared harness, but it needs a shadcn-style setup because the bare project cannot resolve its shared utility import.

Use it if

  • You need a short glitch treatment for a hero word, campaign label, or status callout.
  • Your React project already follows shadcn conventions and can absorb the component stylesheet.
  • You want colors, intensity, timing, and blend behavior exposed as component props.

Skip it if

  • You need the effect for paragraphs or frequently changing copy, where stacked duplicate layers become visually noisy.
  • Your design system avoids looping motion or RGB split effects even when reduced-motion preferences are respected.
  • You want a drop-in component for a plain React setup without adding aliases, utilities, or theme variables.

Install

Installation record for animata-glitch-text
Declared dependenciesnone declared
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno provider required in the harness

In a non-shadcn project, copy both source files, replace the cn helper with your own class-name joiner or add that utility, change the alias import to a resolvable path, define the foreground theme variable, and provide a CSS equivalent for the select-none utility if Tailwind is absent.

Source and credit

This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.

Author repository

github.com/codse/animata
License
MIT
Record published
2026-08-14

Alternatives

Other published entries for the text-effect pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.