- Docs
- Components
- Backgrounds
- Dither Wave
Dither Wave
Animated wave effect with retro dithering pattern
dither-wave-tw
Customize
Primary
Secondary
Speed
1.0
Intensity
2.0
Scale
4.0
Down Scale
0.60
Opacity
1.0
Props
15| Name | Type | Default | Description |
|---|---|---|---|
width | number | string | "100%" | Width of the component in pixels or CSS value |
height | number | string | "100%" | Height of the component in pixels or CSS value |
speed | number | 1.0 | Animation speed multiplier |
intensity | number | 1.0 | Wave intensity/amplitude |
scale | number | 6.0 | Scale of the wave pattern (higher = larger waves) |
downScale | number | 0.5 | Downscale factor for dithering pattern (higher = coarser) |
primaryColor | string | "#5227FF" | Primary color in the gradient |
secondaryColor | string | "#5227FF" | Secondary color in the gradient |
tertiaryColor | string | "#0a0a0a" | Tertiary color in the gradient |
opacity | number | 1.0 | Overall opacity (0-1) |
quality | "low" | "medium" | "high" | "medium" | Quality preset for performance/visual tradeoff |
maxFPS | number | 60 | Maximum frames per second cap |
pauseWhenOffscreen | boolean | true | Pause rendering when component is off-screen |
className | string | "" | Additional CSS classes |
children | React.ReactNode | undefined | Content to render on top of the effect |
widthnumber | stringWidth of the component in pixels or CSS value
Default
"100%"heightnumber | stringHeight of the component in pixels or CSS value
Default
"100%"speednumberAnimation speed multiplier
Default
1.0intensitynumberWave intensity/amplitude
Default
1.0scalenumberScale of the wave pattern (higher = larger waves)
Default
6.0downScalenumberDownscale factor for dithering pattern (higher = coarser)
Default
0.5primaryColorstringPrimary color in the gradient
Default
"#5227FF"secondaryColorstringSecondary color in the gradient
Default
"#5227FF"tertiaryColorstringTertiary color in the gradient
Default
"#0a0a0a"opacitynumberOverall opacity (0-1)
Default
1.0quality"low" | "medium" | "high"Quality preset for performance/visual tradeoff
Default
"medium"maxFPSnumberMaximum frames per second cap
Default
60pauseWhenOffscreenbooleanPause rendering when component is off-screen
Default
trueclassNamestringAdditional CSS classes
Default
""childrenReact.ReactNodeContent to render on top of the effect
Default
undefined