← All components
Atmospheres / background

Grainient

A slowly warped, three-color atmosphere with fine film grain.

Open in studio ↗
PLAYGROUND
Live preview
Preparing preview…

Take it with you.

SOURCE ACCESS

Preview freely. Unlock the files.

Enter the shared password to copy the complete source, download every file, and install components in your app.

Access lasts 24 hours. Your preview settings stay with you.

Component notes

  • Give the component a container with an explicit height. It fills that container.
  • The included Demo.tsx recreates the complete preview; the main component contains only the background.
  • Reduced motion renders a still frame. Hidden/offscreen instances stop requesting frames; pause and replay are supported.
  • A static CSS atmosphere remains when graphics acceleration is unavailable. Canvas resolution is capped at 2048 pixels per dimension.
React 19WebGL2OGL 1.0.11

React Bits · MIT with Commons Clause. Used with explicit project permission; see bundled notice.

Props

PropTypeDefaultDescription
color1string#FF9FFCFirst color
color2string#5227FFSecond color
color3string#B497CFThird color
timeSpeednumber0.25Motion speed
colorBalancenumber0Color balance
warpStrengthnumber1Warp strength
warpFrequencynumber5Warp frequency
warpSpeednumber2Warp speed
warpAmplitudenumber50Warp amplitude
blendAnglenumber0Blend angle
blendSoftnessnumber0.05Blend softness
rotationAmountnumber500Rotation
noiseScalenumber2Noise scale
grainAmountnumber0.1Grain amount
grainScalenumber2Grain scale
contrastnumber1.5Contrast
gammanumber1Gamma
saturationnumber1Saturation
centerXnumber0Center X
centerYnumber0Center Y
zoomnumber0.9Zoom
grainAnimatedbooleanfalseAnimate grain
pausedbooleanfalseFreeze the current frame.
replayTokennumber0Change this value to restart the animation.
classNamestring''Additional outer classes.