reactbits.dev
Get started

A spectrum of colors that spark creativity

React Bits brings motion and character to your interface, one copy-paste component at a time.

Start buildingBrowse components
9:41

A spectrum of colors that spark creativity

React Bits brings motion and character to your interface, one copy-paste component at a time.

Start buildingBrowse components

A spectrum of colors that spark creativity

React Bits brings motion and character to your interface, one copy-paste component at a time.

Get startedLearn more
Colors
Time Scale
0.5
Glow
Scale
3.6
Height
3.5
Base Width
5.5
Hue Shift
0°
Color Frequency
Saturation
1.5
Noise
0
Hover Strength
2
Inertia
0.05
Resolution
0.5

More backgrounds in Pro

Shader scenes and animated surfaces made to sit behind real content.

View all 106
21 properties
animationType'rotate' | '3drotate' | 'hover' | 'static''rotate'Rotate spins the prism in place, 3D rotate tumbles it, hover turns it only toward the cursor.
timeScale0.5Speed of the rotation. 0 holds it still.
colorsstring[][]Custom colors for the light, cycled through the color bands. Leave empty for the original spectrum.
glowBrightness of the light.
scale3.6Size of the prism on screen. Larger values zoom in.
height3.5Height of the prism from its base to its tip.
baseWidth5.5Width of the prism at its base.
hueShiftRotates every color around the color wheel, in degrees.
colorFrequencyHow quickly the colors change through the light. Higher values show more bands.
saturation1.5Color intensity, from 0 (grayscale) to 2.
noiseFilm grain over the light, from 0 to 1.
offset{ x?: number; y?: number }{ x: 0, y: 0 }Moves the prism by a number of pixels, x to the right and y down.
interactiveTilts the prism toward the cursor in every animation mode.
hoverStrength2How far the prism turns toward the cursor.
inertia0.05How quickly the prism follows the cursor, from 0.01 (slow and smooth) to 1 (instant).
Fades the light in on mount.
resolution0.5Fraction of the screen resolution the light is rendered at, from 0.25 to 1. The glow is soft, so 0.5 looks the same as full resolution and runs about four times faster.
lightModeDraws the light as colored ink for light backgrounds.
dprautoMaximum device pixel ratio, capped at 2.
Extra class names for the container.
Inline styles for the container.
animationType'rotate' | '3drotate' | 'hover' | 'static'

Rotate spins the prism in place, 3D rotate tumbles it, hover turns it only toward the cursor.

Default'rotate'
timeScalenumber

Speed of the rotation. 0 holds it still.

Default0.5
colorsstring[]

Custom colors for the light, cycled through the color bands. Leave empty for the original spectrum.

Default[]
glownumber

Brightness of the light.

scalenumber

Size of the prism on screen. Larger values zoom in.

Default3.6
heightnumber

Height of the prism from its base to its tip.

Default3.5
baseWidthnumber

Width of the prism at its base.

Default5.5
hueShiftnumber

Rotates every color around the color wheel, in degrees.

colorFrequencynumber

How quickly the colors change through the light. Higher values show more bands.

saturationnumber

Color intensity, from 0 (grayscale) to 2.

Default1.5
noisenumber

Film grain over the light, from 0 to 1.

offset{ x?: number; y?: number }

Moves the prism by a number of pixels, x to the right and y down.

Default{ x: 0, y: 0 }
interactiveboolean

Tilts the prism toward the cursor in every animation mode.

hoverStrengthnumber

How far the prism turns toward the cursor.

Default2
inertianumber

How quickly the prism follows the cursor, from 0.01 (slow and smooth) to 1 (instant).

Default0.05
introboolean

Fades the light in on mount.

resolutionnumber

Fraction of the screen resolution the light is rendered at, from 0.25 to 1. The glow is soft, so 0.5 looks the same as full resolution and runs about four times faster.

Default0.5
lightModeboolean

Draws the light as colored ink for light backgrounds.

dprnumber

Maximum device pixel ratio, capped at 2.

Defaultauto

Extra class names for the container.

Inline styles for the container.