Lens Reveal 404
A caretaker sweeps beneath a giant amber 404 while a brass loupe follows the pointer and magnifies a hidden message layer.
Try it: Move the loupe (or arrow keys) — find the secret under the lens.
Brings its own background. A warm paper-and-ink scene that looks the same on light and dark pages. Override the frame via className.
Installation
Install with the shadcn CLI:
npx shadcn@latest add https://www.framekitui.live/r/lens-reveal-404.jsonOr, with the @framekit namespace registered: npx shadcn@latest add @framekit/lens-reveal-404. You can also copy the source into components/ui/lens-reveal-404.tsx (view on GitHub).
Usage
import { LensReveal404 } from '@/components/ui/lens-reveal-404'Props
| Prop | Type | Default | Notes |
|---|---|---|---|
title / subtitle | string | — | Visible copy outside the lens. |
secretTitle / secretSubtitle | string | — | Copy that only appears under the lens. |
radius | number | 76 | Lens radius in px. |
zoom | number | 1.5 | Magnification inside the lens. |
homeHref / onHome | string / () => void | '/' | Home button target or handler. |
Dependencies
motionlucide-react
Related 404 Animation components
- Constellation Lost 404
Tiny 3D astronaut among reconnecting star “404” with pointer parallax.
- Mesh Orb 404
Glowing mesh-grid sphere with bloom, pulse synced to fake audio, equatorial waveform ring.
- Paper Tear 404
3D folded paper character peeking through a torn hole; perspective scraps.
- Mars Tether 404
Mars-textured sphere as the 0, orange astronaut perched on top, tethered rocket with waving path.
- Glitch Portal 404
Faceted buddy stuck in a chromatic portal — RGB split, scanlines, rim glow.
- Paper Orbit 404
Layered paper-cut space scene with orbital rings, cratered moons, astronaut, and terracotta home CTA.