Border Draw

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/input-border-draw

About this component

On focus, four border lines trace around the input clockwise (top, right, bottom, left), each starting after the previous finishes. Pure CSS transforms, no dependencies.

Triggers

  • Focus
  • Border
  • Delay stagger

Techniques

  • Transform only
  • Transition delay stagger

Difficulty

Intermediate

Accessibility

Reduced motion

Animated spans hidden under prefers-reduced-motion; static border shown as focus indicator.

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

More inputs

See all
80
Count RingGet code
ElectricGet code