# Cover Drop

> A cover picker where a dropped photo spreads in like liquid over a rippling 3D surface - remove it and it drains away while a droplet springs home.

A cover picker where you drag a photo onto the cover.

Wanted an excuse to try Three.js, so the dropped photo lands on a gridded plane instead of an image tag. A small shader sends rings out from the centre that lift the surface and catch the light, while the photo spreads out and comes into colour. Once the waves settle, a plain image takes over.

The slot keeps a faint imprint of the photo, and removing the cover drains it back to the centre as a droplet springs home.

## Source

- [components/crafts/cover-drop/index.tsx](https://github.com/aviralj02/portfolio-v2/blob/main/components/crafts/cover-drop/index.tsx)
- [components/crafts/cover-drop/thumbnail.tsx](https://github.com/aviralj02/portfolio-v2/blob/main/components/crafts/cover-drop/thumbnail.tsx)
- [components/crafts/cover-drop/cover.tsx](https://github.com/aviralj02/portfolio-v2/blob/main/components/crafts/cover-drop/cover.tsx)
- [components/crafts/cover-drop/liquid-photo.tsx](https://github.com/aviralj02/portfolio-v2/blob/main/components/crafts/cover-drop/liquid-photo.tsx)
- [components/crafts/cover-drop/shared.ts](https://github.com/aviralj02/portfolio-v2/blob/main/components/crafts/cover-drop/shared.ts)

---

HTML version: https://heyaviral.com/craft/cover-drop · Site overview for agents: https://heyaviral.com/llms.txt
