# Filter Scrub Gallery

**Group:** Galleries and grids  
**Recording:** [https://s4xw77gvirailb62.public.blob.vercel-storage.com/lab/filter-scrub-gallery.mp4](https://s4xw77gvirailb62.public.blob.vercel-storage.com/lab/filter-scrub-gallery.mp4)  
**Source:** [https://ui.aryank.space/components/filter-scrub-gallery](https://ui.aryank.space/components/filter-scrub-gallery)  
**Human:** https://blankinterfaces.com/lab/filter-scrub-gallery

---

## What it is

A horizontal wall of image cards panned by pointer position with a lerped offset, plus a column of category filters that expand matching cards from a sliver to full width with a custom hop ease and collapse the rest, re-measuring the scrub range each time. GSAP with CustomEase, no other dependencies.

## Behaviour

### Pointer-mapped scrub

Cursor x is converted to a percentage of the container and multiplied by the overflow, then eased toward with a 0.025 lerp, so the strip trails the pointer smoothly instead of snapping to it.

### Width-grow filtering

Matching cards animate from a 25px sliver to full width while the rest collapse to display none; the track is re-measured on completion so the scrub range always matches the visible set.

---

[View all content](https://blankinterfaces.com/sitemap.md)
