Current Lines
Thin glowing lines traced through a churning fluid, mostly hidden until the cursor reveals them and curls them around itself.
pixikit.com/docs/effects/current-lines
Customize
Preset
Colors3 of 10
Speed0.50
Scale1.60
Turbulence1.00
Fluidity0.10
Rim width0.20
Sharpness2.5
Shimmer1.50
Glow2.00
Line width1.0px
Flow direction
Mouse interaction
Mouse strength1.00
Mouse radius0.35
Mouse dampening0.15s
Click swirl
Intro
Light mode
Transparent
Background color
Opacity1.00
Paused
Props
27| Name | Type | Default | Description |
|---|---|---|---|
preset | "classic" | "ember" | "glacier" | "calm" | "storm" | "filament" | "dense" | "classic" | A ready-made look; every prop you set yourself still wins over it. |
colors | string[] | ["#ffffff", "#ffffff", "#ffffff"] | Up to six colours blended along the lines; a single colour makes every line the same. |
speed | number | 0.5 | How fast the fluid churns and flows. |
scale | number | 1.6 | Zoom of the pattern; higher values show bigger, fewer shapes. |
turbulence | number | 1 | How much the flow swirls and distorts. |
fluidity | number | 0.1 | How smoothly the two layers of the fluid merge; higher values give softer, rounder lines. |
rimWidth | number | 0.2 | Thickness of the glow around each line. |
sharpness | number | 2.5 | Falloff of the glow; higher values are tighter. |
shimmer | number | 1.5 | How much the lines break up into separate strokes; 0 shows every line. |
glow | number | 2 | Brightness of the lines. |
lineWidth | number | 1 | Width of the crisp core inside each line in pixels; 0 keeps only the glow. |
flowDirection | "up" | "down" | "left" | "right" | "down" | Main direction the fluid drifts. |
mouseInteraction | boolean | true | Turns the cursor into a magnet that reveals and curls the lines around it. |
mouseStrength | number | 1 | Strength of the cursor magnet. |
mouseRadius | number | 0.35 | Reach of the cursor magnet, as a fraction of the height. |
mouseDampening | number | 0.15 | Time in seconds the magnet takes to catch up with the cursor; 0 follows instantly. |
clickSwirl | boolean | true | Clicking stirs the fluid into a swirl. |
intro | boolean | true | Fades the lines in on mount. |
lightMode | boolean | false | Draws the lines as ink for light backgrounds. |
transparent | boolean | true | Lets the page show through; when off, the lines sit on the background colour. |
backgroundColor | string | "#120f17" | Background colour when transparent is off. |
opacity | number | 1 | Opacity of the whole effect. |
paused | boolean | false | Freezes the flow. |
mixBlendMode | CSSProperties["mixBlendMode"] | None | CSS mix-blend-mode applied to the canvas. |
dpr | number | 2 | Highest device pixel ratio drawn. |
className | string | None | Extra class names for the canvas. |
style | CSSProperties | None | Inline styles for the canvas. |