Skip to content
PixiKit

Drift Strands

Three bundles of glowing lines that sweep across the section on slow waves, bend around the pointer and curl when clicked.

pixikit.com/docs/effects/drift-strands

Customize

Line count10
Line distance6.0
Line style
Line width1.0px
Glow1.00
Brightness1.00
Animation speed1.00
Amplitude1.00
Depth of field0.50
Edge fade0.00
Top wave x10.0
Top wave y0.50
Top wave rotate-0.40
Middle wave x5.0
Middle wave y0.00
Middle wave rotate0.20
Bottom wave x2.0
Bottom wave y-0.70
Bottom wave rotate-1.00
Interactive
Bend radius5.0
Bend strength-0.50
Mouse damping0.05
Parallax
Parallax strength0.20
Click swirl
Intro
Background color
Light mode
Opacity1.00

Props

36
NameTypeDefaultDescription
linesGradientstring[]["#e945f5", "#ffffff"]Up to 8 colours blended across the lines of each wave.
enabledWaves("top" | "middle" | "bottom")[]["top", "middle", "bottom"]Which waves to show.
lineCountnumber | number[]10The lines per wave, 1 to 24. Pass an array to set each enabled wave separately.
lineDistancenumber | number[]6The spacing between the lines of a wave. Pass an array to set each enabled wave separately.
lineStyle"solid" | "dotted" | "dashed""solid"Draws the lines as solid strands, rows of dots or dashes.
lineWidthnumber1The width of each line, in pixels.
glownumber1The strength of the glow around the lines.
brightnessnumber1The overall brightness of the lines.
animationSpeednumber1The speed of the wave motion.
amplitudenumber1The height of the waves.
depthOfFieldnumber0.5How much the waves in the back soften out of focus, 0 to 1.
edgeFadenumber0Fades the lines out toward the left and right edges, 0 to 1.
topWaveXnumber10The offset of the top wave.
topWaveYnumber0.5The height of the top wave.
topWaveRotatenumber-0.4The curl of the top wave, in radians.
middleWaveXnumber5The offset of the middle wave.
middleWaveYnumber0The height of the middle wave.
middleWaveRotatenumber0.2The curl of the middle wave, in radians.
bottomWaveXnumber2The offset of the bottom wave.
bottomWaveYnumber-0.7The height of the bottom wave.
bottomWaveRotatenumber-1The curl of the bottom wave, in radians.
interactivebooleantrueBends the lines around the pointer.
bendRadiusnumber5The size of the area around the pointer that bends the lines.
bendStrengthnumber-0.5How strongly the lines bend. Negative values part them around the pointer, positive values pull them in.
mouseDampingnumber0.05How smoothly the bend follows the pointer, from 0 (frozen) to 1 (instant).
parallaxbooleantrueShifts the waves in depth as the pointer moves.
parallaxStrengthnumber0.2The strength of the parallax shift.
clickSwirlbooleantrueA click stirs the lines into a curl that slowly unwinds, turning the way the pointer was moving.
introbooleantrueSwells the waves in from flat lines on mount.
mixBlendModeCSSProperties["mixBlendMode"]"screen"The CSS mix-blend-mode of the container in dark mode.
backgroundColorstring""An opaque background behind the lines. Empty leaves the canvas transparent.
lightModebooleanfalseDraws the lines as ink for light backgrounds.
opacitynumber1The opacity of the whole effect.
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