Filter Scrub Gallery
- group .........
- Galleries and grids
- recording .....
- https://s4xw77gvirailb62.public.blob.vercel-storage.com/lab/filter-scrub-gallery.mp4
- source ........
- https://ui.aryank.space/components/filter-scrub-gallery
- markdown ......
- /lab/filter-scrub-gallery.md
- human .........
- /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.