Skip to content

Isometric Prisms

A staggered field of solid prisms floats above an isometric plane.

LIVE PREVIEWInteract with the component
Just React. No extra dependencies.

Copy the component and its CSS module into your project.

CSS Modules

Usage

Matches your current playground settings.

jsx
import IsometricPrisms from "./IsometricPrisms";
export default function Example() {
return (
<IsometricPrisms
color={"#9cabc9"}
background={"#141923"}
gridSize={5}
speed={5}
paused={false}
height={420}
/>
);
}

Using Isometric Prisms

Use gridSize to choose between a few large blocks and a dense field. Face shading follows color so the shape stays consistent when you change the palette.

The SVG stays inside its reserved height and does not measure or resize its parent. Pass paused or use reduced motion to show the static arrangement.

Props

NameTypeRequiredDefaultDescription
colorstringNo"#9cabc9"Base colour used to shade the three prism faces.
backgroundstringNo"#141923"Surface behind the prisms.
gridSizenumberNo5Number of prisms along each grid axis, from 2 to 8.
speednumberNo5Duration of each rise or fall in seconds.
childrenReactNodeNoundefinedOptional foreground content.
heightnumber | stringNo420Reserved height of the effect.
pausedbooleanNofalsePause the decorative animation.
classNamestringNo""Additional classes on the root element.
styleCSSPropertiesNoundefinedInline styles for sizing, typography and appearance.

Related components

Lava Lamp

Backgrounds

Warm liquid forms merge and drift inside a softly lit glass lamp.

Helix Field

Backgrounds

Two strands of shaded particles rotate around fine connecting rungs.

Wave Lattice

Backgrounds

A fine perspective mesh drifts over a sculpted wave surface.

Kinetic Mobile

Backgrounds

Suspended discs, rings and counterweights sway on fine connecting rods.