prince101 · No 101
Image reveal
Fluid mask layer that reveals imagery as the cursor moves over the card.
Install
pnpm dlx shadcn add @prince-ui/prince101Dependencies
framer-motion
Basic usage
import { ImageReveal } from "@/components/ui/prince101";
export default function Example() {
return <ImageReveal />;
}Source code
The whole component is one file. Open it with the </> control at the top right of the preview, or take it straight from here.
Keep in mind
Several of these are recreations of interactions I admired elsewhere, rebuilt from scratch and usually extended. I have credited what I could trace — if something of yours is here uncredited, tell me and I will fix it.
License & usage
- Free to use and modify in personal and commercial projects.
- MIT licensed — no attribution required, though a link back is always welcome.
- No paywalled tier, no pro version, no lock-in.
Contact
Found a bug, or built something with it? Send me a note.