Icon Shift

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/input-icon-shift

About this component

A leading icon rotates and shifts on focus with a spring overshoot, while the border glows and a box-shadow ring appears. The icon color transitions from muted to accent, giving the field a lively focused state.

Triggers

  • Focus

Techniques

  • Transform only

Difficulty

Beginner

Moves on

Its code uses this curve. Open one to see it plotted and tune it.

Accessibility

Reduced motion

Skip rotation and translate; only border-color and box-shadow change.

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

More inputs

See all
LaserGet code