Toggle Sidebar B
AppearanceLight & dark mode D

Prism

Rotating prism with configurable intensity, size, and colors.

Default

Every prop is wired to the controls underneath. Switch the animation type to Hover and the prism tilts toward the pointer.

Light previewReplay previewOpen in new tab
New Creative Components

A spectrum of colors that spark creativity

Get started Learn more

Customize

Animation Type
Time Scale0.5
Scale3.6
Height3.5
Base Width5.5
Noise0
Glow1
Hue Shift0
Color Frequency1

API Reference

Prism

PropTypeDefaultDescription
heightnumber3.5Apex height of the prism (world units).
baseWidthnumber5.5Total base width across X/Z (world units).
animationType"rotate" | "hover" | "3drotate""rotate"Animation mode: shader wobble, pointer hover tilt, or full 3D rotation.
glownumber1Glow/bleed intensity multiplier.
offset{ x?: number; y?: number }{ x: 0, y: 0 }Pixel offset within the canvas (x to the right, y down).
noisenumber0.5Film-grain noise amount added to final color (0 disables).
transparentbooleantrueWhether the canvas has an alpha channel (transparent background).
scalenumber3.6Overall screen-space scale of the prism (bigger = larger).
hueShiftnumber0Hue rotation (radians) applied to final color.
colorFrequencynumber1Frequency of internal sine bands controlling color variation.
hoverStrengthnumber2Sensitivity of hover tilt (pitch/yaw amplitude).
inertianumber0.05Easing factor for hover (0..1, higher = snappier).
bloomnumber1Extra bloom factor layered on top of glow.
suspendWhenOffscreenbooleanfalsePause rendering when the element is not in the viewport.
timeScalenumber0.5Global time multiplier for animations (0=frozen, 1=normal).
lightModebooleanfalseRenders the prism as ink on a white background.

Accessibility

Keyboard shortcuts and ARIA behavior.

  • Purely decorative canvas. Set timeScale to 0 for users who prefer reduced motion, and turn on suspendWhenOffscreen to stop rendering while it is out of view.