reactbits.dev
Get started

Hold on, scanning for Angular users.

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

Start buildingBrowse components
9:41

Hold on, scanning for Angular users.

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

Start buildingBrowse components

Hold on, scanning for Angular users.

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

Get startedLearn more
Cells
8
Line Thickness
1px
Depth
3
Depth Fade
0.6
Parallax
Shading
0.7
Reflection
0.35
Scan Duration
2.4s
Scan Delay
1.6s
Scan Width
Trail
0.5
Glow
0.6

More backgrounds in Pro

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

View all 106
29 properties
linesColor'#4d4757'Color of the grid lines. Light mode defaults to a pale gray.
scanColor'#7dd3fc'Color of the scan, its trail, the points and the click ping. Light mode defaults to a deeper blue.
cells8Number of grid cells from the floor to the ceiling.
lineThicknessThickness of the grid lines in pixels.
lineStyle'solid' | 'dashed' | 'dotted''solid'Style of the grid lines.
depth3How deep the room goes, relative to its height. High values turn it into a long corridor.
depthFade0.6How much the room fades into the distance, from 0 (evenly bright) to 1 (gone by the back wall).
parallaxHow far the view shifts as the cursor moves, as if you were moving your head in front of a window. 0 keeps it still.
shading0.7Soft light and corner shadows on the walls, from 0 (pure wireframe) to 1.
reflection0.35How much the glossy floor reflects the scan and pings, from 0 to 1.
pointsScatters points over the walls that sparkle as the scan passes, like a LiDAR capture.
scanDirection'forward' | 'backward' | 'pingpong''forward'Whether the scan travels into the room, out of it, or alternates.
scanDuration2.4Seconds each scan takes to cross the room.
scanDelay1.6Seconds between scans.
scanWidthThickness of the scan line, from 0.2 to 5.
trail0.5How long the walls keep glowing behind the scan, from 0 to 1.
glow0.6Bloom around the scan line and points, from 0 to 1.5.
autoScanRuns scans on a loop. Turn it off to scan only on click.
interactiveMoves the view with the cursor and lights up the walls under it.
clickEffect'ping' | 'scan' | 'none''ping'What a click does. Ping sends a ring of light across the walls from that spot, scan starts a new scan.
enableWebcamMoves the view with your head through the webcam. The face tracker is loaded from a CDN the first time it turns on.
showPreviewShows a small camera preview with the tracking status while the webcam is on.
modelsPathCDN URLWhere the face tracking model is loaded from. Point it at your own copy to self-host.
enableGyroMoves the view as a phone or tablet tilts. iOS asks for permission on the first tap.
Reveals the room with a first scan on mount.
lightModeRenders a bright room with dark shading for light backgrounds.
dprautoMaximum device pixel ratio, capped at 2.
Extra class names for the container.
Inline styles for the container.
linesColorstring

Color of the grid lines. Light mode defaults to a pale gray.

Default'#4d4757'
scanColorstring

Color of the scan, its trail, the points and the click ping. Light mode defaults to a deeper blue.

Default'#7dd3fc'
cellsnumber

Number of grid cells from the floor to the ceiling.

Default8
lineThicknessnumber

Thickness of the grid lines in pixels.

lineStyle'solid' | 'dashed' | 'dotted'

Style of the grid lines.

Default'solid'
depthnumber

How deep the room goes, relative to its height. High values turn it into a long corridor.

Default3
depthFadenumber

How much the room fades into the distance, from 0 (evenly bright) to 1 (gone by the back wall).

Default0.6
parallaxnumber

How far the view shifts as the cursor moves, as if you were moving your head in front of a window. 0 keeps it still.

shadingnumber

Soft light and corner shadows on the walls, from 0 (pure wireframe) to 1.

Default0.7
reflectionnumber

How much the glossy floor reflects the scan and pings, from 0 to 1.

Default0.35
pointsboolean

Scatters points over the walls that sparkle as the scan passes, like a LiDAR capture.

scanDirection'forward' | 'backward' | 'pingpong'

Whether the scan travels into the room, out of it, or alternates.

Default'forward'
scanDurationnumber

Seconds each scan takes to cross the room.

Default2.4
scanDelaynumber

Seconds between scans.

Default1.6
scanWidthnumber

Thickness of the scan line, from 0.2 to 5.

trailnumber

How long the walls keep glowing behind the scan, from 0 to 1.

Default0.5
glownumber

Bloom around the scan line and points, from 0 to 1.5.

Default0.6
autoScanboolean

Runs scans on a loop. Turn it off to scan only on click.

interactiveboolean

Moves the view with the cursor and lights up the walls under it.

clickEffect'ping' | 'scan' | 'none'

What a click does. Ping sends a ring of light across the walls from that spot, scan starts a new scan.

Default'ping'
enableWebcamboolean

Moves the view with your head through the webcam. The face tracker is loaded from a CDN the first time it turns on.

showPreviewboolean

Shows a small camera preview with the tracking status while the webcam is on.

modelsPathstring

Where the face tracking model is loaded from. Point it at your own copy to self-host.

DefaultCDN URL
enableGyroboolean

Moves the view as a phone or tablet tilts. iOS asks for permission on the first tap.

introboolean

Reveals the room with a first scan on mount.

lightModeboolean

Renders a bright room with dark shading for light backgrounds.

dprnumber

Maximum device pixel ratio, capped at 2.

Defaultauto

Extra class names for the container.

Inline styles for the container.