Toggle Sidebar B
AppearanceLight & dark mode D

Floating Lines

3D floating lines that react to cursor movement.

Default

Waves, line settings and the gradient are wired to the controls underneath. Move the pointer over the lines to bend them.

Light previewReplay previewOpen in new tab
New Creative Components

Waves are cool! Even cooler with lines!

Get started Learn more

Customize

Line Count8
Line Distance8
Animation Speed1
Bend Radius8
Bend Strength-2
Gradient Start
Gradient Mid
Gradient End

API Reference

FloatingLines

PropTypeDefaultDescription
linesGradientstring[]undefinedArray of hex color strings for gradient coloring of lines (max 8 colors).
enabledWavesArray<'top' | 'middle' | 'bottom'>['top', 'middle', 'bottom']Which wave layers to display. Can toggle individual waves on/off.
lineCountnumber | number[][6]Number of lines per wave. Single number applies to all waves, or array for per-wave control.
lineDistancenumber | number[][5]Spacing between lines. Single number applies to all waves, or array for per-wave control.
topWavePosition{ x: number; y: number; rotate: number }undefinedPosition and rotation settings for the top wave layer.
middleWavePosition{ x: number; y: number; rotate: number }undefinedPosition and rotation settings for the middle wave layer.
bottomWavePosition{ x: number; y: number; rotate: number }{ x: 2.0, y: -0.7, rotate: -1 }Position and rotation settings for the bottom wave layer.
animationSpeednumber1Speed multiplier for the wave animation.
interactivebooleantrueWhether the lines react to mouse/pointer movement.
bendRadiusnumber5Radius of the area affected by mouse interaction.
bendStrengthnumber-0.5Intensity of the bend effect when interacting with mouse.
mouseDampingnumber0.05Smoothing factor for mouse movement tracking (0-1).
parallaxbooleantrueEnable parallax effect with mouse movement.
parallaxStrengthnumber0.2Strength of the parallax effect.
mixBlendModestring'screen'CSS mix-blend-mode applied to the container.
backgroundColorstring'#000000'Background color used by the shader.
lightModebooleanfalseDraws dark lines over a white background and turns off the blend mode.

Accessibility

Keyboard shortcuts and ARIA behavior.

  • Purely decorative canvas. Place it behind content with enough contrast.