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| Name | Type | Default | Description |
|---|---|---|---|
linesGradient | string[] | ["#e945f5", "#ffffff"] | Up to 8 colours blended across the lines of each wave. |
enabledWaves | ("top" | "middle" | "bottom")[] | ["top", "middle", "bottom"] | Which waves to show. |
lineCount | number | number[] | 10 | The lines per wave, 1 to 24. Pass an array to set each enabled wave separately. |
lineDistance | number | number[] | 6 | The 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. |
lineWidth | number | 1 | The width of each line, in pixels. |
glow | number | 1 | The strength of the glow around the lines. |
brightness | number | 1 | The overall brightness of the lines. |
animationSpeed | number | 1 | The speed of the wave motion. |
amplitude | number | 1 | The height of the waves. |
depthOfField | number | 0.5 | How much the waves in the back soften out of focus, 0 to 1. |
edgeFade | number | 0 | Fades the lines out toward the left and right edges, 0 to 1. |
topWaveX | number | 10 | The offset of the top wave. |
topWaveY | number | 0.5 | The height of the top wave. |
topWaveRotate | number | -0.4 | The curl of the top wave, in radians. |
middleWaveX | number | 5 | The offset of the middle wave. |
middleWaveY | number | 0 | The height of the middle wave. |
middleWaveRotate | number | 0.2 | The curl of the middle wave, in radians. |
bottomWaveX | number | 2 | The offset of the bottom wave. |
bottomWaveY | number | -0.7 | The height of the bottom wave. |
bottomWaveRotate | number | -1 | The curl of the bottom wave, in radians. |
interactive | boolean | true | Bends the lines around the pointer. |
bendRadius | number | 5 | The size of the area around the pointer that bends the lines. |
bendStrength | number | -0.5 | How strongly the lines bend. Negative values part them around the pointer, positive values pull them in. |
mouseDamping | number | 0.05 | How smoothly the bend follows the pointer, from 0 (frozen) to 1 (instant). |
parallax | boolean | true | Shifts the waves in depth as the pointer moves. |
parallaxStrength | number | 0.2 | The strength of the parallax shift. |
clickSwirl | boolean | true | A click stirs the lines into a curl that slowly unwinds, turning the way the pointer was moving. |
intro | boolean | true | Swells the waves in from flat lines on mount. |
mixBlendMode | CSSProperties["mixBlendMode"] | "screen" | The CSS mix-blend-mode of the container in dark mode. |
backgroundColor | string | "" | An opaque background behind the lines. Empty leaves the canvas transparent. |
lightMode | boolean | false | Draws the lines as ink for light backgrounds. |
opacity | number | 1 | The opacity of the whole effect. |
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. |