reactbits.dev
Get started

Don't touch them, they are pretty sharp!

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

Start buildingBrowse components
9:41

Don't touch them, they are pretty sharp!

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

Start buildingBrowse components

Don't touch them, they are pretty sharp!

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

Get startedLearn more
Count
1300
Shard Size
Spread
Twist
Billow
Speed
Scale
Depth of Field
0.75
Glow
0.35
Grain
0.06
Vignette
0.3
Cursor Strength
0.6
Parallax
0.5

More backgrounds in Pro

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

View all 106
29 properties
shardColor'#896ABD'Main color of the shards.
accentColor'#A855F7'Color of the light the shards catch, their rim light and the markers.
backgroundColor'transparent'Fills the canvas behind the shards. Transparent lets the page show through.
lightModeDraws the shards as soft tinted glass for light backgrounds.
placement'full' | 'left' | 'right' | 'center''full'Where the ribbons flow: across the whole view, down one side, or in a ring around the center.
material'glass' | 'chrome''glass'Surface of the shards: thick glass that catches light along its edges, or polished chrome.
markers'plus' | 'dots' | 'none''plus'Survey markers floating at each depth. A few blink, and the one nearest the cursor gets a target frame.
count1300Number of shards across all the ribbons.
shardSizeSize of the shards.
spreadWidth of the ribbons.
twistHow much the ribbons twist along their length.
billowHow much the ribbons ripple like silk.
speedHow fast the shards flow.
scaleZoom of the whole scene.
depthOfField0.75How soft the farther ribbons get. 0 keeps everything sharp.
glow0.35Soft bloom around the brightest glints.
grain0.06Film grain on the shards. 0 turns it off.
vignette0.3Fades everything out toward the edges of the frame. 0 runs edge to edge.
The ribbons draw in from the left, front to back, on mount.
mouseInteractionThe cursor parts the shards it passes through and leans the camera toward it.
mouseStrength0.6How strongly the cursor parts the shards.
parallax0.5How far the camera leans toward the cursor.
pulseOnClickClicking sends a ring of light out through every depth, flipping the shards it passes.
holdToGatherPressing and holding gathers nearby shards into a swirl that scatters back on release.
pausedFreezes the flow.
dpr2Maximum device pixel ratio of the canvas.
onError(error: Error) => voidCalled if WebGPU is unavailable or fails, so you can show a fallback.
Extra class names for the container.
Inline styles for the container.
shardColorstring

Main color of the shards.

Default'#896ABD'
accentColorstring

Color of the light the shards catch, their rim light and the markers.

Default'#A855F7'
backgroundColorstring

Fills the canvas behind the shards. Transparent lets the page show through.

Default'transparent'
lightModeboolean

Draws the shards as soft tinted glass for light backgrounds.

placement'full' | 'left' | 'right' | 'center'

Where the ribbons flow: across the whole view, down one side, or in a ring around the center.

Default'full'
material'glass' | 'chrome'

Surface of the shards: thick glass that catches light along its edges, or polished chrome.

Default'glass'
markers'plus' | 'dots' | 'none'

Survey markers floating at each depth. A few blink, and the one nearest the cursor gets a target frame.

Default'plus'
countnumber

Number of shards across all the ribbons.

Default1300
shardSizenumber

Size of the shards.

spreadnumber

Width of the ribbons.

twistnumber

How much the ribbons twist along their length.

billownumber

How much the ribbons ripple like silk.

speednumber

How fast the shards flow.

scalenumber

Zoom of the whole scene.

depthOfFieldnumber

How soft the farther ribbons get. 0 keeps everything sharp.

Default0.75
glownumber

Soft bloom around the brightest glints.

Default0.35
grainnumber

Film grain on the shards. 0 turns it off.

Default0.06
vignettenumber

Fades everything out toward the edges of the frame. 0 runs edge to edge.

Default0.3
introboolean

The ribbons draw in from the left, front to back, on mount.

mouseInteractionboolean

The cursor parts the shards it passes through and leans the camera toward it.

mouseStrengthnumber

How strongly the cursor parts the shards.

Default0.6
parallaxnumber

How far the camera leans toward the cursor.

Default0.5
pulseOnClickboolean

Clicking sends a ring of light out through every depth, flipping the shards it passes.

holdToGatherboolean

Pressing and holding gathers nearby shards into a swirl that scatters back on release.

pausedboolean

Freezes the flow.

dprnumber

Maximum device pixel ratio of the canvas.

Default2
onError(error: Error) => void

Called if WebGPU is unavailable or fails, so you can show a fallback.

Extra class names for the container.

Inline styles for the container.

Dependencies

1 required package

npm install vgpu