Word Drum
One screen where a drum of titles turns as you scroll, drag or swipe, and loops for ever. They sit round a cylinder lying on its side: the one at the front is sharp and bright between two hairlines, the rest tip away, dim and blur. Behind it each photo the drum leaves shrinks into the middle of the screen over the next one; scroll fast and several are falling away at once, nested inside each other like a tunnel. When you stop it settles on a title.
How It Works
The drum's position is a number of titles that counts turns without wrapping. The wheel, a drag or a swipe moves a target, the position follows it quickly, and a short pause after the input settles the target on a whole title, onward if it was more than an eighth past the last. Every title is placed by its distance from the position, the short way round, so the list wraps: pushed back by the radius, rotated round, pushed forward again, so the front one sits flat at its true size, and faded and blurred as it tips away. The photos are drawn on a pool of 14 image layers rather than one element per photo, so many can be moving at once, all decoded up front. At most six shrink and four grow at a time: past that the oldest shrinking one, by then tiny, is dropped, and the oldest growing one, by then nearly full, simply arrives, so a frantic scroll never piles up layers. No layer holds will-change while idle. When the position passes halfway to the next title, everything covering the screen starts a 0.8 second shrink to nothing in the middle, from whatever size it is, the smallest on top, while the new photo settles in underneath; scroll fast and several are shrinking at once, like a tunnel. Going back, the photo grows out of the middle on top, and the full-screen photo underneath is only let go once every photo growing over it has arrived, so the background never shows. The layers sit in a stacking context of their own, under the drum and the controls.
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/word-drum<WordDrum items={[{ src, alt, title, caption }]} />- items is a list of { src, alt, title, caption? }. It fills one screen and loops: the wheel, a trackpad, a drag or a swipe turns it continuously, and when you stop it settles on the next title in the direction you were going (so a single wheel notch moves one title). Up and left go on, down and right go back; a thrown drag carries on a little. Made to fill the screen: while it's only partly in view, the wheel is left to the page.
- spacing is how far apart the titles sit round the drum, in degrees: smaller packs them tighter. The drum's radius is worked out from the font size, so the titles stay a line apart at any size.
- The front title's caption sits right-aligned between the two hairlines (bottom left on phones), on a soft shade so it reads over any photo. Bottom right are a count, a bar per title (click one to turn straight to it) and previous and next buttons; clicking a title on the drum turns the short way round to it. It takes focus, and the arrow keys turn it. The current title is announced as it changes. With reduced motion it moves in whole titles.
- No packages: CSS 3D for the drum, plain images scaled with transforms, and a requestAnimationFrame loop that only runs while the drum is turning.
More Sliders

Lens Slider
Sliders

Colour Wash Slider
Sliders

35mm Film Reel
Sliders
Your Next Site Starts with a Live Demo.
Click around first. What you see is exactly what you download.