Wave Lines
A field of fine lines that sway on slow noise waves; the pointer drags them like fabric and a click parts them in a ripple.
pixikit.com/docs/effects/wave-lines
Customize
Line color
Accent color
Background color
Line style
Spacing10px
Line width1.0px
Rotation0deg
Amplitude32px
Scale1.0
Twist1.00
Speed1.0
Variation0
Mouse interaction
Mouse radius175px
Mouse strength1.0
Bounce0.50
Return duration1.4s
Click ripple
Intro
Fade0.00
Opacity1.00
Light mode
Paused
Props
26| Name | Type | Default | Description |
|---|---|---|---|
lineColor | string | "#ffffff" | The colour of the lines; any CSS colour. |
accentColor | string | "" | The colour lines take on where the pointer or a click pushes them. Follows `lineColor` when empty. |
backgroundColor | string | "transparent" | The background behind the lines. |
lineStyle | "solid" | "dashed" | "solid" | Solid lines, or dashes that stream along them. |
spacing | number | 10 | The space between lines, in pixels. |
lineWidth | number | 1 | The width of the lines, in pixels. |
rotation | number | 0 | Turns the lines, in degrees. 90 lays them flat. |
amplitude | number | 32 | How far the lines sway, in pixels. |
scale | number | 1 | The size of the wave pattern. Higher values make broader, calmer waves. |
twist | number | 1 | How much the waves twist the lines, gathering them into bright folds. |
speed | number | 1 | How fast the waves flow. 0 holds them still. |
variation | number | 0 | Picks a different wave pattern. |
mouseInteraction | boolean | true | Moving the pointer drags the lines along with it. |
mouseRadius | number | 175 | The radius around the pointer that drags the lines, in pixels. |
mouseStrength | number | 1 | How hard a moving pointer drags the lines. |
bounce | number | 0.5 | How much the lines overshoot and wobble as they settle, 0 to 1. |
returnDuration | number | 1.4 | Roughly how long the lines take to settle back, in seconds. |
clickRipple | boolean | true | A click parts the lines in a soft ripple. |
intro | boolean | true | Opens the lines from the centre and swells the waves in on mount. |
fade | number | 0 | Fades the edges into the page, 0 to 1. |
opacity | number | 1 | The opacity of the whole effect. |
lightMode | boolean | false | Draws the lines as ink for light backgrounds. |
paused | boolean | false | Freezes the waves. |
dpr | number | None | The highest device pixel ratio drawn; the screen's by default, capped at 2. |
className | string | None | |
style | CSSProperties | None | Inline styles for the container. |