Field

Motion that
answers

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-field

About this component

A feature card on a field of small needles. A slow wave runs through them, and near the pointer they swing round to face it and turn vermilion, like iron filings round a magnet. The headline is set in Bricolage Grotesque and the round arrow button turns to point forward on hover.

Triggers

  • Mouse tracking
  • Hover
  • Card
  • Ambient
  • Spring

Techniques

  • requestAnimationFrame
  • Mouse tracking
  • Event position
  • Spring
  • CSS transition
  • @property

Difficulty

Advanced

Accessibility

Keyboard and screen readers

The needles are a decorative canvas (aria-hidden); the headline is a real h3 and the arrow is a link named "Explore" by aria-label, with a 2px :focus-visible outline in the accent.

Reduced motion

The field is a still frame that only answers the pointer, and the arrow does not turn.

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

More cards

See all

Ines Calder

IdenticonGet code
Operating account

19.9%

LedgerGet code

Workspace

No command matches

PaletteGet code

Low Sun

Ora Vale

PlayerGet code