Skip to content
PixiKit

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
NameTypeDefaultDescription
lineColorstring"#ffffff"The colour of the lines; any CSS colour.
accentColorstring""The colour lines take on where the pointer or a click pushes them. Follows `lineColor` when empty.
backgroundColorstring"transparent"The background behind the lines.
lineStyle"solid" | "dashed""solid"Solid lines, or dashes that stream along them.
spacingnumber10The space between lines, in pixels.
lineWidthnumber1The width of the lines, in pixels.
rotationnumber0Turns the lines, in degrees. 90 lays them flat.
amplitudenumber32How far the lines sway, in pixels.
scalenumber1The size of the wave pattern. Higher values make broader, calmer waves.
twistnumber1How much the waves twist the lines, gathering them into bright folds.
speednumber1How fast the waves flow. 0 holds them still.
variationnumber0Picks a different wave pattern.
mouseInteractionbooleantrueMoving the pointer drags the lines along with it.
mouseRadiusnumber175The radius around the pointer that drags the lines, in pixels.
mouseStrengthnumber1How hard a moving pointer drags the lines.
bouncenumber0.5How much the lines overshoot and wobble as they settle, 0 to 1.
returnDurationnumber1.4Roughly how long the lines take to settle back, in seconds.
clickRipplebooleantrueA click parts the lines in a soft ripple.
introbooleantrueOpens the lines from the centre and swells the waves in on mount.
fadenumber0Fades the edges into the page, 0 to 1.
opacitynumber1The opacity of the whole effect.
lightModebooleanfalseDraws the lines as ink for light backgrounds.
pausedbooleanfalseFreezes the waves.
dprnumberNoneThe highest device pixel ratio drawn; the screen's by default, capped at 2.
classNamestringNone
styleCSSPropertiesNoneInline styles for the container.

More background effects in Pro

View all

Related