Depth Swap
- from @snapcn
Depth-of-field text swap: a headline cuts over a photo wall the camera dollies out of. A headline swaps inside a wall of pictures with real depth. The camera dollies back out of a defocused wall while the first line blurs up out of nothing and each picture comes into focus at its own distance; on the beat the line cuts to the second, sharp in the middle and blurred at its ends, and the camera slides sideways as the nearest picture swings across, growing. Replayed from a screen recording: one pinhole camera fitted to every card and both lines at once, each card's edge and picture blur, shadow and out-of-focus spill are measured tables.
Install
New to shadcn? Set up your project
If your project already has a shadcn components.json, skip initialization. Otherwise, run this once from your project root.
pnpm dlx shadcn@latest initpnpm dlx shadcn@latest add @snapcn/depth-swapLive preview
No live preview has been built for this component yet.
Registry dependencies0
The CLI adds no other registry items with this one.
