- Docs
- Components
- Backgrounds
- Glowing Wave
Glowing Wave
A single luminous wave sweeping slowly across the screen
Customize
Props
35| Name | Type | Default | Description |
|---|---|---|---|
speed | number | 1 | Travel speed of the wave. |
swell | number | 0.15 | Height of the primary swell. |
swellFrequency | number | 3 | Frequency of the primary swell. |
ripple | number | 0.08 | Height of the secondary ripple. |
rippleFrequency | number | 6 | Frequency of the secondary ripple. |
chop | number | 0.04 | Height of the noise riding on the crest. |
chopScale | number | 2 | Scale of the noise riding on the crest. |
waterline | number | 0 | Vertical placement of the wave, 0 is centred. |
edgeSoftness | number | 0.1 | Softness of the fill edge. |
depth | number | 0.6 | How far the fill gradient reaches below the crest. |
glow | number | 0.6 | Brightness of the crest line. |
glowWidth | number | 0.05 | Width of the crest line. |
halo | number | 0.35 | Brightness of the surrounding halo relative to the crest. |
haloWidth | number | 0.2 | Width of the surrounding halo. |
richness | number | 0.35 | How far the iridescence overrides the plain gradient, 0 to 1. |
colorFrequency | number | 2 | Number of colour bands through the fill. |
saturation | number | 0.9 | Vividness of the colour bands. |
spread | number | 0.04 | How far the hue travels away from hotColor, 0 to 0.5. |
swirl | number | 1 | Strength of the noise that bends the colour bands. |
swirlScale | number | 1.5 | Scale of the noise that bends the colour bands. |
grain | number | 0.05 | Film grain strength, 0 to 1. |
grainSize | number | 2 | Grain cell size in CSS pixels. |
color | string | "#0f172a" | Deep colour under the wave. |
hotColor | string | "#c7d2fe" | Colour of the crest and its glow. |
backgroundColor | string | "#0a0a0a" | Panel backdrop, or "transparent" to show the page through. |
opacity | number | 1 | Master alpha. |
cursorInteraction | boolean | true | Let the pointer raise the crest. |
cursorLift | number | 0.12 | How high the pointer lifts the crest. |
cursorReach | number | 0.25 | How wide the pointer lifts the crest. |
paused | boolean | false | Freeze the animation. |
adaptiveQuality | boolean | true | Scale back resolution when the frame budget slips. |
targetFps | number | 60 | Frame rate the quality meter aims to hold. |
dpr | number | 2 | Upper device pixel ratio bound. |
className | string | undefined | Extra classes for the panel. |
children | ReactNode | undefined | Content layered above the panel. |
speednumberTravel speed of the wave.
1swellnumberHeight of the primary swell.
0.15swellFrequencynumberFrequency of the primary swell.
3ripplenumberHeight of the secondary ripple.
0.08rippleFrequencynumberFrequency of the secondary ripple.
6chopnumberHeight of the noise riding on the crest.
0.04chopScalenumberScale of the noise riding on the crest.
2waterlinenumberVertical placement of the wave, 0 is centred.
0edgeSoftnessnumberSoftness of the fill edge.
0.1depthnumberHow far the fill gradient reaches below the crest.
0.6glownumberBrightness of the crest line.
0.6glowWidthnumberWidth of the crest line.
0.05halonumberBrightness of the surrounding halo relative to the crest.
0.35haloWidthnumberWidth of the surrounding halo.
0.2richnessnumberHow far the iridescence overrides the plain gradient, 0 to 1.
0.35colorFrequencynumberNumber of colour bands through the fill.
2saturationnumberVividness of the colour bands.
0.9spreadnumberHow far the hue travels away from hotColor, 0 to 0.5.
0.04swirlnumberStrength of the noise that bends the colour bands.
1swirlScalenumberScale of the noise that bends the colour bands.
1.5grainnumberFilm grain strength, 0 to 1.
0.05grainSizenumberGrain cell size in CSS pixels.
2colorstringDeep colour under the wave.
"#0f172a"hotColorstringColour of the crest and its glow.
"#c7d2fe"backgroundColorstringPanel backdrop, or "transparent" to show the page through.
"#0a0a0a"opacitynumberMaster alpha.
1cursorInteractionbooleanLet the pointer raise the crest.
truecursorLiftnumberHow high the pointer lifts the crest.
0.12cursorReachnumberHow wide the pointer lifts the crest.
0.25pausedbooleanFreeze the animation.
falseadaptiveQualitybooleanScale back resolution when the frame budget slips.
truetargetFpsnumberFrame rate the quality meter aims to hold.
60dprnumberUpper device pixel ratio bound.
2classNamestringExtra classes for the panel.
undefinedchildrenReactNodeContent layered above the panel.
undefined