Field
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initCardField(el) on the mounted element instead.
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/card-fieldAbout 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 allInes Calder
19.9%
Workspace
No command matches