Color Panels simulates glowing semi-transparent planes rotating around a central vertical axis, producing a pseudo-3D perspective effect. Panels are colored using up to 7 colors in a repeating sequence. Each panel can be skewed horizontally with two independent angle parameters, and the gradient control blends adjacent colors within a single panel.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/paper-design/shaders/llms.txt
Use this file to discover all available pages before exploring further.
Usage
- React
- Vanilla JS
Props
Array of CSS color strings assigned to panels in sequence. Accepts up to 7 colors. Supports alpha transparency.
Background color shown behind the panels. Accepts any CSS color string, including transparent.
Horizontal skew of the left (near) edge of each panel. Range
-1 to 1. Positive values skew the left edge inward.Horizontal skew of the right (near) edge of each panel. Range
-1 to 1. Positive values skew the right edge inward.Panel length relative to the total canvas height. Values greater than
1 extend panels beyond the canvas edges. Range 0 to 3.When
true, highlights the edges of each panel with a bright rim for a more defined look.Softens the side edges of each panel.
0 gives sharp edges; 0.5 gives heavily blurred edges. Range 0 to 0.5.Transparency of panels near the central axis (approaching the viewer).
0 makes them fully transparent near center; 1 is fully opaque. Range 0 to 1.Transparency of panels near the viewer (the front of the 3D space). Higher values make panels near the viewer more transparent. Range
0 to 1.Color mixing within a single panel.
0 fills each panel with a solid color; 1 blends into the adjacent color across the panel. Range 0 to 1.Controls the angular spacing between panels. Higher values pack panels more tightly. Range
0.25 to 7.Animation speed multiplier. Set to
0 to pause.Starting animation frame in milliseconds.
Presets
| Name | Description |
|---|---|
defaultPreset | Seven-color vibrant palette on black with default panel geometry. |
glassPreset | Four-color palette with skewed angles, edge highlights, and blur for a glass pane look. |
gradientPreset | Five-color palette with heavy gradient mixing and blur, creating a soft aurora effect. |
openingPreset | Single cyan color on dark purple with fast speed and strong fadeOut for a dramatic opening. |
@paper-design/shaders-react:
Sizing props
Color Panels also accepts allShaderSizingParams (fit, scale, rotation, offsetX, offsetY, originX, originY, worldWidth, worldHeight). See Sizing and fit for details.