
Grainy gradients that flow with you.
React Bits brings motion and character to your interface, one copy-paste component at a time.

Grainy gradients that flow with you.
React Bits brings motion and character to your interface, one copy-paste component at a time.
Grainy gradients that flow with you.
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.
colors | string[] | ['#120f17', '#2a0f0a', '#9a3412', '#f97316', '#fed7aa'] | Two to eight colors, from the base to the highlight. Use your page background as the first color so the edges blend in. |
type | 'linear' | 'radial' | 'linear' | Linear runs the colors across the container. Radial puts the last color in the middle. |
angle | 55 | Direction of a linear gradient in degrees, like CSS: 0 runs bottom to top, 90 left to right. | |
bands | How many times the colors repeat back and forth, from 1 to 8. Higher values make stripes or rings. | ||
softness | Blend between colors, from 0 (crisp, poster-like edges) to 1 (smooth). | ||
flow | 0.8 | How much the gradient bends into waves, from 0 (straight) to 3. Above 1 it starts to marble. | |
scale | Size of the waves, from 0.25 to 3. | ||
speed | Speed of the drifting waves. 0 holds them still. | ||
silk | 0.35 | Satin shading on the folds, from 0 to 1. Combine with bands for glossy ribbons. | |
grainAmount | 0.08 | Strength of the film grain, from 0 to 0.5. | |
grainSize | 1.2 | Size of the grain in pixels, from 0.5 to 4. | |
grainAnimated | Shifts the grain every frame like film. When off, the grain stays fixed. | ||
contrast | Contrast of the colors, from 0.2 to 2. | ||
saturation | Saturation of the colors, from 0 (grayscale) to 2. | ||
variation | Picks a different pattern of waves. | ||
interactive | Lets the cursor drag the colors around like paint. The trail settles back after a moment. | ||
stir | How far the cursor drags the colors, from 0 to 2. | ||
clickSwirl | Clicking twists the colors into a swirl that slowly unwinds. | ||
| Blooms the colors out from the middle on mount. | |||
lightMode | Builds a light version of the palette: the first color becomes white and the others run in reverse, deepest last. | ||
dpr | auto | Maximum device pixel ratio, capped at 2. | |
| Extra class names for the container. | |||
| Inline styles for the container. |
colorsstring[]Two to eight colors, from the base to the highlight. Use your page background as the first color so the edges blend in.
['#120f17', '#2a0f0a', '#9a3412', '#f97316', '#fed7aa']type'linear' | 'radial'Linear runs the colors across the container. Radial puts the last color in the middle.
'linear'anglenumberDirection of a linear gradient in degrees, like CSS: 0 runs bottom to top, 90 left to right.
55bandsnumberHow many times the colors repeat back and forth, from 1 to 8. Higher values make stripes or rings.
softnessnumberBlend between colors, from 0 (crisp, poster-like edges) to 1 (smooth).
flownumberHow much the gradient bends into waves, from 0 (straight) to 3. Above 1 it starts to marble.
0.8scalenumberSize of the waves, from 0.25 to 3.
speednumberSpeed of the drifting waves. 0 holds them still.
silknumberSatin shading on the folds, from 0 to 1. Combine with bands for glossy ribbons.
0.35grainAmountnumberStrength of the film grain, from 0 to 0.5.
0.08grainSizenumberSize of the grain in pixels, from 0.5 to 4.
1.2grainAnimatedbooleanShifts the grain every frame like film. When off, the grain stays fixed.
contrastnumberContrast of the colors, from 0.2 to 2.
saturationnumberSaturation of the colors, from 0 (grayscale) to 2.
variationnumberPicks a different pattern of waves.
interactivebooleanLets the cursor drag the colors around like paint. The trail settles back after a moment.
stirnumberHow far the cursor drags the colors, from 0 to 2.
clickSwirlbooleanClicking twists the colors into a swirl that slowly unwinds.
introbooleanBlooms the colors out from the middle on mount.
lightModebooleanBuilds a light version of the palette: the first color becomes white and the others run in reverse, deepest last.
dprnumberMaximum device pixel ratio, capped at 2.
autoExtra class names for the container.
Inline styles for the container.



