Filter Scrub Gallery
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.
npx shadcn@latest add https://ui.aryank.space/r/filter-scrub-gallery.jsonInstalls from ui.aryank.space. To add it by hand, copy the files in Usage below, or register the @compronents namespace via the docs.
| Prop | Type | Default | Description |
|---|---|---|---|
| filters | GalleryFilter[] | Six BLANK categories | Each filter's label and the 1-based item indices it shows. |
| images | string[] | Fifty BLANK-hosted images | Card image pool; item index maps to filter membership. |
| brand / navLinks | string / string[] | BLANK / Services, Work, Contact | Wordmark and center navigation links. |
filterstextCategory labels and the item indices each one shows.
imagesasset-urlThe pool of card images (index-aligned to the filters).
brand / navLinkstextWordmark and the center navigation links.
gsap
















































