Component packs › Darkroom › Scrub Gallery
Sweep across the frame and it scrubs through the photos with a settle, while ticks and the caption follow.
Scrub Gallery is a gallery from Darkroom, a component pack with 7 effects: Seven photo effects that work on real photos, not on drawings of them. Price: $2 for the whole pack.
Built with: pointer scrub, crossfade settle, ticks.
Code: React and Next.js (TypeScript), Vue 3, plain HTML/CSS/JS, Tailwind CSS v4 and Motion (motion.dev). No npm packages needed. Keyboard accessible, with a reduced-motion version, in dark and light.
| Prop | Type | Default | Description |
|---|---|---|---|
light | boolean | ||
autoplay | boolean | ||
items | { src: string; caption: string }[] | Photos and captions. | |
title | string | ||
onChange | (index: number) => void |
show(index: number): voiddestroy(): voidimport ScrubGallery from './ScrubGallery';
<ScrubGallery />The Vue, HTML, Next.js, Tailwind and Motion versions take the same options.
Good for: Image effect components.