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 @compronents/filter-scrub-galleryInstalls from ui.aryank.space. Needs a registry token and a one-time @compronents entry in components.json. The docs walk through both.
Checking access…
| 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
















































