Spectral Drift Background

Flowing spectral bands with a cursor-reactive warp and soft atmospheric glow.

Customize

ADVERT

Overview

Spectral Drift Background creates smooth, layered color ribbons that drift and bend with your cursor. The background stays luminous without overpowering the foreground, giving you a premium atmospheric canvas. Use it for hero sections, launch highlights, and immersive product pages.

Props

Use the props below to customise the spectral drift background in your own React application.

NameTypeRequiredDefaultDescription
classNamestringNoundefinedOptional class name for layout control.
mouseRefReact.MutableRefObject<{ x: number; y: number }>NoundefinedOptional pointer ref for external cursor tracking, values in the range [-1, 1].
colorsstring[]No["#020617", "#22d3ee", "#a855f7", "#4f46e5"]Array of up to eight colors used to blend the flowing bands.
intensitynumberNo1Overall brightness of the band colors.
rotationnumberNo45Base rotation angle for the flow field in degrees.
speednumberNo0.2Speed multiplier for the drifting motion.
autoRotatenumberNo0Additional automatic rotation speed in degrees per second.
scalenumberNo1Zoom level for the bend pattern.
frequencynumberNo1Frequency of the bend waves across the backdrop.
warpStrengthnumberNo1How strongly the bands warp and curl.
mouseInfluencenumberNo1How much the cursor pulls the bands.
parallaxnumberNo0.5How much the field shifts with cursor movement.
noisenumberNo0.08Amount of grain added to the backdrop.
minHeightnumber | stringNo360Minimum height for the component container. Accepts a number (pixels) or any valid CSS height string.
transparentbooleanNotrueWhether the background alpha is transparent.

Related React components

More components from the same category or sharing similar tags.