Effects Pure CSS

Glitch text

Two coloured, aria-hidden copies behind the real text slice and shift in bands — on hover or in occasional bursts. The text is never split into letters, so Persian stays joined. Pure CSS.

Real scenarios

The component as it is used in a product — not a specimen grid.

A 404 page

trigger="loop": idle most of the time, then a short burst. Screen readers hear the headline once.

404 — nothing here

The page moved, or never existed.

Back home

Status page links

Hover or tab to a link: the text inside glitches because its link is hovered or focused. The degraded service glitches on its own.

Important props

Important props
Prop Type Default What it does
text string '' The text; once for screen readers, two decorative copies for the effect.
trigger string 'hover' hover (or hovering the surrounding link/button) · loop (a burst every few seconds) · always.
as string 'span' Root tag: span · strong · h1 · h2 · h3 · p.

Snippet

<x-nx::glitch-text as="h2" text="خطای ۴۰۴ — این‌جا چیزی نیست" trigger="loop" />

<a href="/status" class="nx-link">
    <x-nx::glitch-text text="System status" />
</a>