Lean Strip
An endless row of pictures hanging from the top of the section, short on the left and tall on the right, so each picture grows as it travels. Scroll, swipe or drag and it slides without end, every tile leaning back the faster it goes.
How It Works
The row holds enough copies of its pictures to cover the screen and slides by one offset, wrapped to the width of one copy, so it never ends. Every frame each tile's height is worked out from where its middle is, from the left edge to the right, so the bottom edge climbs in steps. The tiles stay in the page for layout, hover and links, but WebGL draws their pictures, each as a plane cut into thin rows: the top row stays put and the lower rows trail behind by the speed, almost in a straight line, so the tile leans into a parallelogram and stands up again as the row slows.
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/lean-strip<LeanStrip className="h-svh" items={work}>
<h1 className="text-[15vw] font-black">Atelier</h1>
</LeanStrip>- Give it a height with className (h-svh for a hero). The row hangs just under the top edge (inset sets the gap); whatever you put inside sits along the bottom.
- A tile's height comes from where it is on screen, between heights[0] (at the left edge) and heights[1] (at the right), as a share of its width. The picture keeps one size and is cropped from the bottom, so it never rescales as it grows.
- The wheel, a trackpad swipe in any direction and dragging all move it, forever in either direction. The wheel stays inside it while the pointer is over it; pass wheel={false} to let the page scroll instead (the page's scroll then moves it).
- Each item can have a title and meta, shown under the tile on hover, and an href. Set video to play a muted, looping clip.
- Pictures must come from your own site, or a server that allows cross-origin images, so WebGL can read them. Six or more keep the loop from showing.
- The pictures are drawn with plain WebGL2, no packages. Without WebGL, or with reduced motion, the tiles show their own pictures and don't lean.
More Galleries

Card Pack
Galleries

Morph Gallery
Galleries

Focus Grid
Galleries
Your Next Site Starts with a Live Demo.
Click around first. What you see is exactly what you download.