reactbits.dev
Get started

Click & hold to see the real magic of hyperspeed!

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

Start buildingBrowse components
9:41

Click & hold to see the real magic of hyperspeed!

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

Start buildingBrowse components

Click & hold to see the real magic of hyperspeed!

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

Get startedLearn more
Tail Lights
Headlights
Poles
Curvature
Speed
Boost
3×
FOV
90°
Boost FOV
130°
Lanes
3
Road Width
10
Median
2
Density
40
Trail Length
Light Size
Poles
20
Dust
100
Glow
0.6
Reflections
0.5
Road Opacity
0.1
Steer
0.35

More backgrounds in Pro

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

View all 106
32 properties
tailColorsstring[]Colors of the lights moving away on the left road. Defaults to magentas and violet.
headColorsstring[]Colors of the oncoming lights on the right road. Defaults to cyan and deep blues.
poleColorsstring[]Colors of the light poles along both shoulders.
curve'straight' | 'gentle' | 'winding' | 'hills' | 'racing' | 'deep''winding'Shape of the road. Switching between curves morphs the road smoothly.
curvatureHow strongly the road bends. 0 is straight.
speedCruising speed of the traffic, poles and road markings.
boost3Speed multiplier while the pointer is held down. The lights stretch into longer trails as it kicks in.
fov90Camera field of view in degrees.
boostFov130Field of view while boosting. The camera springs between the two for a punchy warp.
lanes3Lanes on each side of the road.
roadWidth10Width of each side of the road.
medianWidth2Width of the strip between the two sides.
density40Cars on each side of the road, up to 160.
trailLengthLength of the light trails.
lightSizeThickness of the light trails.
poles20Light poles on each shoulder, up to 80. 0 removes them.
poleHeightHeight of the light poles.
dust100Speed streaks flying past in the air, up to 1500. They stretch into warp lines while boosting.
glow0.6Soft bloom around every light. Dense traffic glows brighter. 0 turns it off.
reflections0.5How much the lights reflect on the road, like wet asphalt at night.
roadOpacity0.1Opacity of the road and its markings. Lower it to let your page show through under the traffic. Reflections fade with it.
steer0.35How far the camera drifts and turns toward the pointer.
roadColorColor of the asphalt. The median strip takes a slightly lighter shade. Follows the theme when not set.
lineColorColor of the lane markings. Follows the theme when not set.
backgroundColor behind the road, which the road fades into. Leave it unset to keep the canvas transparent so your page shows through.
theme'dark' | 'light''dark'Dark renders glowing light trails. Light renders crisp colored trails on a pale road.
interactiveClick and hold to boost, and let the camera follow the pointer.
boostingTurns the boost on from your own code, for example while something loads.
onBoostStart() => voidCalled when the user starts boosting.
onBoostEnd() => voidCalled when the user lets go.
Extra class names for the container.
Inline styles for the container.
tailColorsstring[]

Colors of the lights moving away on the left road. Defaults to magentas and violet.

headColorsstring[]

Colors of the oncoming lights on the right road. Defaults to cyan and deep blues.

poleColorsstring[]

Colors of the light poles along both shoulders.

curve'straight' | 'gentle' | 'winding' | 'hills' | 'racing' | 'deep'

Shape of the road. Switching between curves morphs the road smoothly.

Default'winding'
curvaturenumber

How strongly the road bends. 0 is straight.

speednumber

Cruising speed of the traffic, poles and road markings.

boostnumber

Speed multiplier while the pointer is held down. The lights stretch into longer trails as it kicks in.

Default3
fovnumber

Camera field of view in degrees.

Default90
boostFovnumber

Field of view while boosting. The camera springs between the two for a punchy warp.

Default130
lanesnumber

Lanes on each side of the road.

Default3
roadWidthnumber

Width of each side of the road.

Default10
medianWidthnumber

Width of the strip between the two sides.

Default2
densitynumber

Cars on each side of the road, up to 160.

Default40
trailLengthnumber

Length of the light trails.

lightSizenumber

Thickness of the light trails.

polesnumber

Light poles on each shoulder, up to 80. 0 removes them.

Default20
poleHeightnumber

Height of the light poles.

dustnumber

Speed streaks flying past in the air, up to 1500. They stretch into warp lines while boosting.

Default100
glownumber

Soft bloom around every light. Dense traffic glows brighter. 0 turns it off.

Default0.6
reflectionsnumber

How much the lights reflect on the road, like wet asphalt at night.

Default0.5
roadOpacitynumber

Opacity of the road and its markings. Lower it to let your page show through under the traffic. Reflections fade with it.

Default0.1
steernumber

How far the camera drifts and turns toward the pointer.

Default0.35
roadColorstring

Color of the asphalt. The median strip takes a slightly lighter shade. Follows the theme when not set.

lineColorstring

Color of the lane markings. Follows the theme when not set.

backgroundstring

Color behind the road, which the road fades into. Leave it unset to keep the canvas transparent so your page shows through.

theme'dark' | 'light'

Dark renders glowing light trails. Light renders crisp colored trails on a pale road.

Default'dark'
interactiveboolean

Click and hold to boost, and let the camera follow the pointer.

boostingboolean

Turns the boost on from your own code, for example while something loads.

onBoostStart() => void

Called when the user starts boosting.

onBoostEnd() => void

Called when the user lets go.

Extra class names for the container.

Inline styles for the container.

Dependencies

1 required package

npm install three