Foil

HaldenMember

Ada Moreau

No. 004 271
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-foil

About this component

A black membership pass with a holographic foil engraving: a guilloche rosette, a seal and a border of micro text. It tilts toward the pointer in 3D, the foil runs through its colours with the angle and a glare slides the other way. Left alone it sways slowly.

Triggers

  • Hover
  • Mouse tracking
  • 3D
  • Ambient
  • Gradient
  • Card

Techniques

  • Perspective
  • 3D transform
  • Mouse tracking
  • requestAnimationFrame
  • Conic gradient
  • mix-blend-mode
  • SVG
  • @property
  • CSS variables

Difficulty

Advanced

Accessibility

Keyboard and screen readers

The pass is an article with real text for the brand, tier, name and number, light on black at well over 4.5:1. The engraving, its micro text border, the seal and the glare are ornament and aria-hidden. Nothing depends on the pointer.

Reduced motion

The tilt loop never starts and the foil shimmer is off, leaving a still, complete pass.

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

More cards

See all

Edge network

38 regions

FRA → SIN

24ms

GlobeGet code

Integrations

0 of 7 connected

HubGet code
StandupTue 09:30

Launch week

1 of 3 done
MinutesGet code
Cairn

Usage
Billing

Metering

002
PebbleGet code