Photo Folder
A frosted-glass folder with your photos tucked inside and a die-cut sticker on the front. Hover it and the photos spring up and fan out one by one, the flap dips open, the glow brightens and the sticker wiggles.
Features
- •Photos that pop out — Hover the folder and up to five photos spring up out of it and fan out one after another; hover a photo to lift it a little higher. On phones, tap to open and close.
- •Frosted glass — A tinted folder back with its tab, and a frosted front that blurs the photos behind it and dips open on hover.
- •A sticker on the front — Thirteen built-in die-cut stickers (cat, chick, flower, fish, star, heart and more) with a thick white edge, or your own SVG or PNG. It wiggles when the folder opens.
- •Name and count — The folder name underneath, and a pill with the number of photos and your own word for them.
- •Your colours — Folder colour, a soft glow underneath that brightens on hover (in the folder colour or your own), text colour and size.
- •One file — Plain React and Framer Motion. Without photos, soft colour cards stand in so it never looks empty. Keyboard focus opens it too.
Props API Reference
10 configurable props| Prop | Type | Default | Description |
|---|---|---|---|
| photos | string[] | [] | Photo URLs inside the folder (up to 5 show); without any, colour cards stand in. |
| label | string | "Dot" | The folder name under the folder. |
| count / countLabel | number / string | photos.length / "photos" | The number in the pill, and the word after it. |
| sticker | "cat" | "bird" | "flower" | "fish" | "mushroom" | "bug" | "star" | "heart" | "talisman" | "flame" | "eye" | "burst" | "bolt" | "none" | "cat" | The built-in sticker on the front. |
| stickerImage / stickerSize | string / number | undefined / 1 | Your own sticker image (SVG or transparent PNG), and the sticker size (0.6–1.6). |
| color / glowColor | string | "#F4A6C8" / folder colour | The folder tint, and the glow underneath. |
| glow | boolean | true | The soft glow under the folder. |
| size | number | 240 | Folder width in px. |
| textColor | string | "#F5F5F7" | Name and count. |
| className / style | string / CSSProperties | undefined | On the wrapper; it fills its parent and centres the folder. |