Skip to content
ReactHive

Arc Gallery

An endless WebGL carousel that swells when it moves. A looping strip of panels, each a picture with its name above and a line under it, glides across a full screen section as you scroll over it, or as you drag and throw it, and the panels wipe in one after another when it loads. The faster it goes, the more the panel passing the middle swells toward you while the rest sink back, and the more the pictures split into colour; stop, and it eases flat again. A round button follows the pointer over the panels.

ScrollReactHive OriginalNo packages, just React and Tailwind CSS
Arc GalleryScroll

How It Works

The section is one screen. The wheel, a drag or a throw sets where the strip should be, in panels, and a soft, nearly critically damped spring follows it; panels are drawn wherever their place on the loop falls on screen. The strip's speed drives a second spring, the swell: in the vertex shader every point is moved toward or away from you by a soft bump centred on the middle of the screen (forward at the centre, back a little everywhere else), then projected, so the panel passing the middle swells while you move and the row flattens as the spring settles. The fragment shader samples red and blue a little apart by the same speed, and draws the photo from its own texture inside a rounded frame worked out in the shader, cropped with a little extra room and slid sideways by the panel's place on screen, so it lags behind its frame. On load each panel wipes in from the bottom and rises into place, staggered from left to right, once the pictures and type are ready. Each panel's name and caption are drawn once on a 2D canvas at the screen's pixel ratio; the photo is uploaded as is, with mipmaps.

Use It

Install it with shadcn, or copy the file into your components folder, then use it like this. Change a setting in the demo and the example picks it up. Works with Next.js (App Router) and any React 19 project on Tailwind CSS v4.

npx shadcn@latest add @reacthive/arc-gallery
Example
<ArcGallery
  items={[{ image: "/work/afterglow.webp", title: "Afterglow", caption: "Identity and site for a night of dance.", href: "/work/afterglow" }]}
  cursor={<span className="grid size-16 place-items-center rounded-full bg-blue-600 text-white">View</span>}
/>
  • items are { image, title, caption?, href? }. The title, the picture and up to three lines of caption are drawn together into one texture per panel, so they swell as one; accent and ink colour the title and caption, titleWeight and captionWeight set their weights (lighter reads better on a dark ground), and ratio is the picture's width to height.
  • The section is one screen tall and stays put: the wheel or trackpad over it moves the strip (it takes the scroll while the pointer is over it), and dragging or swiping, with a throw that carries, moves it too. The strip loops either way without end, and short lists repeat to fill the screen.
  • curve is how far the middle swells at speed (0 keeps it flat), split how far the pictures split into colour, and parallax how far each picture drifts inside its frame as it crosses the screen.
  • cursor is any markup for the round button that follows the pointer over a picture; it doesn't show on touch. Clicking a picture (not a drag), or tapping it on touch, follows its href, and every panel is also in a list of plain links for screen readers and keyboards.
  • Plain WebGL2, no packages: one finely divided plane drawn once per visible panel. With reduced motion the strip stays flat and still.
  • On phones a panel is most of the screen wide with its neighbours peeking in, and an upright tablet gets the same large single panel; names and captions never drop below 15 and 13 pixels.

Arc Gallery, Answered.

Free to use, what it needs and where it came from.

Your Next Site Starts with a Live Demo.

Click around first. What you see is exactly what you download.

Start a Project

Tell us what you're making. A few lines is plenty; we'll ask the rest on a call.

What do you need?
Rough budget (optional)

Or email projects@reacthive.dev