
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.

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.
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.
More backgrounds in Pro
Shader scenes and animated surfaces made to sit behind real content.
tailColors | string[] | Colors of the lights moving away on the left road. Defaults to magentas and violet. | |
headColors | string[] | Colors of the oncoming lights on the right road. Defaults to cyan and deep blues. | |
poleColors | string[] | 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. |
curvature | How strongly the road bends. 0 is straight. | ||
speed | Cruising speed of the traffic, poles and road markings. | ||
boost | 3 | Speed multiplier while the pointer is held down. The lights stretch into longer trails as it kicks in. | |
fov | 90 | Camera field of view in degrees. | |
boostFov | 130 | Field of view while boosting. The camera springs between the two for a punchy warp. | |
lanes | 3 | Lanes on each side of the road. | |
roadWidth | 10 | Width of each side of the road. | |
medianWidth | 2 | Width of the strip between the two sides. | |
density | 40 | Cars on each side of the road, up to 160. | |
trailLength | Length of the light trails. | ||
lightSize | Thickness of the light trails. | ||
poles | 20 | Light poles on each shoulder, up to 80. 0 removes them. | |
poleHeight | Height of the light poles. | ||
dust | 100 | Speed streaks flying past in the air, up to 1500. They stretch into warp lines while boosting. | |
glow | 0.6 | Soft bloom around every light. Dense traffic glows brighter. 0 turns it off. | |
reflections | 0.5 | How much the lights reflect on the road, like wet asphalt at night. | |
roadOpacity | 0.1 | Opacity of the road and its markings. Lower it to let your page show through under the traffic. Reflections fade with it. | |
steer | 0.35 | How far the camera drifts and turns toward the pointer. | |
roadColor | Color of the asphalt. The median strip takes a slightly lighter shade. Follows the theme when not set. | ||
lineColor | Color of the lane markings. Follows the theme when not set. | ||
background | 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' | Dark renders glowing light trails. Light renders crisp colored trails on a pale road. |
interactive | Click and hold to boost, and let the camera follow the pointer. | ||
boosting | 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. |
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.
'winding'curvaturenumberHow strongly the road bends. 0 is straight.
speednumberCruising speed of the traffic, poles and road markings.
boostnumberSpeed multiplier while the pointer is held down. The lights stretch into longer trails as it kicks in.
3fovnumberCamera field of view in degrees.
90boostFovnumberField of view while boosting. The camera springs between the two for a punchy warp.
130lanesnumberLanes on each side of the road.
3roadWidthnumberWidth of each side of the road.
10medianWidthnumberWidth of the strip between the two sides.
2densitynumberCars on each side of the road, up to 160.
40trailLengthnumberLength of the light trails.
lightSizenumberThickness of the light trails.
polesnumberLight poles on each shoulder, up to 80. 0 removes them.
20poleHeightnumberHeight of the light poles.
dustnumberSpeed streaks flying past in the air, up to 1500. They stretch into warp lines while boosting.
100glownumberSoft bloom around every light. Dense traffic glows brighter. 0 turns it off.
0.6reflectionsnumberHow much the lights reflect on the road, like wet asphalt at night.
0.5roadOpacitynumberOpacity of the road and its markings. Lower it to let your page show through under the traffic. Reflections fade with it.
0.1steernumberHow far the camera drifts and turns toward the pointer.
0.35roadColorstringColor of the asphalt. The median strip takes a slightly lighter shade. Follows the theme when not set.
lineColorstringColor of the lane markings. Follows the theme when not set.
backgroundstringColor 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.
'dark'interactivebooleanClick and hold to boost, and let the camera follow the pointer.
boostingbooleanTurns 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.
Dependencies
1 required package
npm install three


