Droste

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/card-droste

About this component

A portfolio card whose cover photo is the card itself, which holds the card again, and so on down. Hover and the camera pushes into the picture forever: each copy grows to fill the frame and becomes the next.

Dependencies
None
Difficulty
Intermediate
Reduced motion
Respected
Theme
Light and dark
Follows page color-scheme

Triggers3

  • Hover
  • Loop
  • Card

Techniques3

  • Keyframes
  • Transform only
  • CSS variables

Accessibility

Keyboard and screen readers

An article labelled with the studio name; the nested copies are aria-hidden, so the card is read once. It takes focus, and focus runs the zoom as hover does.

Reduced motion

The cover stays still.

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

More cards

See all
Burn after reading

The spare key is under the blue pot. Don't tell Sam.

From J.
Burned. Nothing left to read.
EmberGet code
Lake Bledf/8 · 1/500

Golden hour · Slovenia

FlareGet code
MemberKiln & Co clubRowan HartNo. 0042 · Valid 11/27
FlexGet code

New message

To Mara Lind

Here are the frames from Friday. The second pass is much calmer, see what you think.

Saved 2 min ago
GenieGet code