Contour Drift
Fine parallel lines that bend into slow silk-like waves, with a band of light drifting through them. The lines open up around the cursor and a click rolls a wave through.
pixikit.com/docs/effects/contour-drift
Customize
Color1
Color2
Color3
Color cycle speed1.0
Speed0.30
Line count72
Line width1.30
Glow0.60
Brightness1.00
Highlight1.00
Highlight width1.00
Warp intensity1.00
Warp scale1.00
Rotation-33
Edge fade0.00
Enable mouse interaction
Mouse influence2.00
Click ripple
Intro
Light mode
Opacity1.00
Props
24| Name | Type | Default | Description |
|---|---|---|---|
color1 | string | "#ffffff" | First color the lines blend through. |
color2 | string | "#ffffff" | Second color the lines blend through. |
color3 | string | "#ffffff" | Third color the lines blend through. |
colorCycleSpeed | number | 1 | How fast the colors drift across the lines. 0 keeps them in place. |
speed | number | 0.3 | How fast the waves flow. 0 freezes them. |
lineCount | number | 72 | Number of lines across the height of the container. |
lineWidth | number | 1.3 | Thickness of the lines, in px. |
glow | number | 0.6 | Strength of the soft glow around each line. |
brightness | number | 1 | Overall brightness of the lines. |
highlight | number | 1 | Strength of the band of light that drifts through the lines, from 0 to 1. At 0 every line is lit evenly. |
highlightWidth | number | 1 | Width of the band of light. Higher values light more lines at once. |
warpIntensity | number | 1 | How strongly the lines bend into waves. |
warpScale | number | 1 | Size of the waves. Higher values give broad, sweeping curves. |
rotation | number | -33 | Angle of the lines, in degrees. |
edgeFade | number | 0 | Fades the lines out toward the edges of the container, from 0 to 1. |
enableMouseInteraction | boolean | true | The lines spread apart and light up around the cursor. |
mouseInfluence | number | 2 | How strongly the lines react to the cursor. |
clickRipple | boolean | true | A click sends a smooth wave rolling out through the lines. |
intro | boolean | true | The lines draw in across the container on mount. |
lightMode | boolean | false | Draws the lines as ink for light backgrounds. |
opacity | number | 1 | Overall opacity, from 0 to 1. |
maxDevicePixelRatio | number | 2 | Highest pixel ratio the canvas renders at. |
className | string | None | |
style | CSSProperties | None |