Typewriter

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/button-typewriter

About this component

On hover, the button label erases character-by-character at 45ms intervals then retypes an alternate label at 55ms intervals. On mouse leave the process reverses back to the original text. A blinking cursor is shown throughout.

Triggers

  • Hover
  • State change

Techniques

  • Interval
  • Text animation

Difficulty

Intermediate

Accessibility

Reduced motion

Text animation still runs under prefers-reduced-motion as it is content-revealing, not decorative.

Use it in anything you build, commercial and client work included. Licence

More buttons

See all
XP GainGet code
HaloGet code
BrickGet code