
Fractal Glass
WebGL
A WebGL image carousel effect whose planes bend with drag and scroll speed, adding subtle spatial depth to a looping row or columns of images.
Curved Plane bends a looping carousel of image planes as they are dragged or scrolled, so a gallery holds spatial depth without needing a full 3D scene.
Use it where a set of images, product renders, or portfolio visuals deserves subtle dimensional treatment. The page job is controlled depth: the bend should make the image feel more authored, not turn the section into a showroom.
The thing to watch is over-art-direction. If the source image is weak, curvature will not rescue it. Keep the curve restrained, preserve readable foreground copy, and serve a flat image fallback.
import CurvedPlane from "@/components/effects/curved-plane"; export default function page() { return ( <> <CurvedPlane /> </> );}An architecture firm can use Curved Plane on a case-study page to present a row of project photographs. As visitors drag or scroll, the images glide horizontally and the plane bends with the speed of the movement, then eases flat again as it settles.
The outcome is depth without a full 3D scene. The project imagery feels authored rather than laid out as a static grid.
Not for low-power-first pages, dense content, dashboards, checkout, or routes where performance is the main conversion lever.
The renderer allows DPR up to 2, so cap it at 1.0 on touch/mobile and 1.5 on mid-range desktop. Curved Plane already pauses offscreen and in hidden tabs, has no postprocessing, and texture sizes should stay controlled.
Keep meaningful content in HTML outside the canvas, which is aria-hidden and has no keyboard controls. On mobile, touch drag moves the carousel and the full-screen container blocks page scrolling, so switch to a poster if the scene cannot hold frame rate.
| Prop | Type | Default | Description |
|---|---|---|---|
speed | number | 1 | Drag, wheel, and inertia movement speed. |
curveValue | number | 1 | Multiplier for the image plane curvature deformation. |
gap | number | 1 | Spacing multiplier between image planes. |
imageSize | number | 1 | Image plane size multiplier. |
A handful of bent planes is relatively light (seven in the horizontal row, up to 24 in the vertical columns), but texture size dominates the cost, so cap DPR at 1.0 on mobile and 1.5 on desktop and serve appropriately sized images. Avoid uploading huge textures the curve doesn't need. It should run comfortably on mid-range hardware when textures are controlled.
Show the images as a flat row as the fallback; since the effect is a curved presentation of pictures that rest flat, the uncurved images are a clean, faithful substitute. The surrounding copy is HTML and unaffected. No information is lost when the planes flatten.
The render loop runs every frame while visible, even when the carousel is at rest, and it already stops when the canvas is offscreen or the tab is hidden. Demand rendering would stop a still carousel from being redrawn every frame. It resumes when it returns to view.
Captions, titles, and links belong in HTML outside the carousel, not inside the textures, so they stay selectable and readable. The planes carry the images; the words carry the meaning. Keep any clickable area as a real DOM element.
Choose flat images when the curvature adds nothing to comprehension, when the page is performance-sensitive, or when precise image detail matters more than the 3D feel. The curve is a stylistic surface; if it doesn't serve the content, plain images are better. Reserve it for showcase galleries.
Need a custom effect? Tell us what to create.