
Character Stagger Button
Buttons
A technical link button effect where text briefly scrambles before resolving for AI, cyber, and developer-tool CTAs.
Scramble Link Button gives a button or link a small, useful moment of feedback: a link scrambles briefly before settling.
Use it where a CTA needs to feel responsive and intentional, not theatrical. A button should confirm action, state, or direction; it should not become a tiny stage play that delays the click.
The main risk is keeping the markup honest. It renders a genuine anchor; preserve focus, keep it firing instantly, and note it has no built-in loading or disabled states. The animation decorates the action; it is never the action.
import ScrambleLinkButton from "@/components/effects/scramble-link-button"; export default function Page() { return ( <> <div className="h-screen w-screen flex items-center justify-center relative"> <ScrambleLinkButton href="#" text="Hover me" showLine={true} stepMs={50} className="text-[2vw] max-sm:text-[4.5vw]" /></div> </> );}A cybersecurity company can use Scramble Link Button for secondary links in its hero and product sections, such as View the threat report or Read the docs. On hover the letters cycle through random glyphs and resolve from left to right, with an underline drawing in beneath the label.
The outcome is technical tone. The link feels like part of a decoding system, but it settles quickly and remains a real anchor that fires on the first click.
An AI developer tool can use the same component in its navigation to give links a coded feel without adding a heavier visual layer.
Not for destructive actions, unclear states, or places where animation hides the label or delays activation.
Keep feedback fast, avoid layout-triggering letter movement, and preserve instant activation.
Use real buttons or anchors, visible focus-visible styles, and clear loading/disabled states. Touch targets should stay large enough on mobile.
| Prop | Type | Default | Description |
|---|---|---|---|
textColor | color | #ffffff | Default text color. |
hoverColor | color | #ff6b00 | Text color while hovered or pressed. |
showLine | boolean | true | Shows the animated underline. |
showArrow | boolean | false | Shows the optional arrow icon. |
scrambleDuration | number | 1000 | Total scramble duration in milliseconds. |
stepMs | number | 50 | Delay between scramble frames. |
revealStagger | number | 1.4 | Controls how characters resolve across the word. |
Use it when a link can scramble briefly before settling as feedback — without delaying the action.
It always renders a real `<a>` with an href, so use it for navigation. For actions, use a `<button>` instead.
Use visible focus-visible styles and support keyboard activation.
It has no loading state, since it is a navigation link. If an action needs a loading state, use a button component instead.
With reduced motion the scramble is skipped and the label stays as written, the underline no longer draws in, the arrow doesn't turn, and the hover colour switches instantly.
Need a custom effect? Tell us what to create.