Trace
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/button-traceAbout 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