Swirl Blend

Colorful iterative swirl shader with palette controls

swirl-blend-tw

Customize

Animation

0.5
7
5
10
1
1

Distortion

3
0.25
0.35
0.1
2

Palette Base

0.75
0.1
0.55

Palette Amplitude

0.3
0.35
0.1

Palette Phase

0.3
0.15
0.2

Color

Props

NameTypeDefaultDescription
widthstring | number"100%"Container width
heightstring | number"100%"Container height
classNamestring""Additional CSS classes
childrenReactNodeundefinedContent rendered above the effect
speednumber0.5Animation speed multiplier (0.01–3.0)
scalenumber7Pattern tile scale (1–20)
iterationsnumber5Number of distortion iterations (1–10)
cosFrequencynumber3Cosine warp frequency (0.1–10)
cosAmplitudenumber0.25Cosine warp amplitude (0–2)
sinAmplitudenumber0.35Sine warp amplitude (0–2)
modulationRatenumber0.1Secondary sine modulation rate (0–2)
modulationDepthnumber2Secondary sine modulation depth (0–5)
paletteBaseRnumber0.75Palette base red channel (0–1)
paletteBaseGnumber0.1Palette base green channel (0–1)
paletteBaseBnumber0.55Palette base blue channel (0–1)
paletteAmpRnumber0.3Palette amplitude red channel (0–1)
paletteAmpGnumber0.35Palette amplitude green channel (0–1)
paletteAmpBnumber0.1Palette amplitude blue channel (0–1)
palettePhaseRnumber0.3Palette phase red channel (0–1)
palettePhaseGnumber0.15Palette phase green channel (0–1)
palettePhaseBnumber0.2Palette phase blue channel (0–1)
outputScalenumber10Output divisor controlling final brightness (1–30)
backgroundColorstring"#000000"Background color (hex)
opacitynumber1Master opacity (0–1)
cursorInteractionbooleanfalseEnable cursor interaction to intensify distortion near pointer
cursorIntensitynumber1Cursor effect strength multiplier (0–3)