Trace

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/button-trace

About this component

A drafting-blue blueprint button with a faint dashed construction outline that marches slowly. On hover a solid white line draws itself all the way round and the corner ticks extend.

Triggers

  • Hover
  • Focus
  • Draw
  • Border

Techniques

  • SVG stroke
  • stroke-dashoffset
  • CSS transition
  • Keyframes

Difficulty

Intermediate

Accessibility

Keyboard and screen readers

A native button named by its label; the SVG is aria-hidden. Keyboard focus draws the same line as hover and adds an outline.

Reduced motion

Nothing animates and the line appears at once.

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

More buttons

See all
TurnGet code
WalnutGet code
WashGet code
CuttleGet code