
Scroll Stack
Scroll
A full-screen WebGL gallery of thin image strips where one strip at a time expands with a displacement ripple as you hover, scroll the wheel, swipe, or press the arrow keys.
Strip Slider shows a whole gallery at once as a row of thin image strips in a Three.js scene and expands one strip at a time into a fuller view with a displacement ripple, while a text ribbon turns in the background and the camera sways with the pointer.
Use Strip Slider when a portfolio or campaign gallery should feel explorable: visitors see every image as a slice and open them one by one. Hovering a strip opens it, and the mouse wheel or trackpad, swipes along the strips, and the arrow keys step to the previous or next one. The default export shows 21 built-in images; the image list is set in the component source.
The thing to watch is that the gallery lives in a canvas. The wheel is captured while the pointer is over it, so the page does not scroll there, and arrow keys are listened for on the whole window. There are no visible captions or buttons; the labels exist only as a visually hidden list.
import StripSlider from '@/components/effects/strip-slider' const page = () => { return ( <> <StripSlider/> </> )} export default pageAn agency case-study page can use Strip Slider as a full-screen gallery of campaign assets: every visual is visible as a slice, and visitors hover or scroll to open each one in turn before reading the written case study.
Not for first-screen messaging, product comparison, or mobile flows that need immediate vertical scanning.
Not for above-the-fold sections where it delays the first message.
The scene renders every frame with WebGL, but rendering pauses while the canvas is offscreen or the tab is hidden, and geometry, materials, listeners, and the renderer are disposed on unmount. Every image is loaded as a texture, so compress the images and keep the gallery to a sensible count.
The canvas is aria-hidden, and the gallery's image labels are listed beside it in a visually hidden list, so screen readers get the labels but not the images (the canvas shuffles the image order on each load, so the list order can differ from what is on screen). There are no buttons: keyboard users step through with the arrow keys, which work anywhere on the page. On touch screens a swipe along the strips steps through them, and on portrait screens the strip row turns vertical.
| Prop | Type | Default | Description |
|---|---|---|---|
dispScale | number | 1 | Multiplier on the ripple/displacement wave strength across all gallery images (collapsed and expanded). |
cameraSway | number | 0.03 | How much the camera drifts toward the pointer position. |
hideCentralStrip | boolean | false | Hides the central white strip overlay around the active image. |
imageSize | number | 1 | Scales the strip gallery image group without recreating the WebGL scene. |
The default export uses 21 images, each drawn as a thin slice, which reads as one continuous band. With many more, each slice gets thinner and harder to read; the image list is set in the component source, so trim it there if the band feels noisy.
There is no duration prop and nothing advances on a timer. The active strip eases open and the others ease closed in the render loop, and the reader sets the rhythm by hovering, using the wheel, swiping, or pressing the arrow keys.
On touch, a swipe along the strips steps to the next or previous image, and the canvas blocks page scrolling while you swipe on it. Keyboard users step through with the arrow keys, which work anywhere on the page. There are no visible buttons and no navigation API.
Above the fold it can delay the first message. Mid-page needs care too: it is full-screen and captures the mouse wheel to step through strips, so desktop visitors cannot wheel-scroll past it while the pointer is over the canvas. It works best as a final or standalone gallery section.
Portfolios, campaign visuals, and photo-led stories where browsing images one at a time builds anticipation. It's wrong for dense information or anything users must read, since strips show images only and their labels exist only as hidden text.
Need a custom effect? Tell us what to create.