Skip to content
PixiKit

Swell Lines

A sea of text: lines of a repeated phrase roll in soft swells toward a horizon, shrinking and fading with distance. Focus follows the pointer's depth, and a click strums the lines from the one you hit.

pixikit.com/docs/effects/swell-lines

Customize

Look
Colors2 of 10
Background color
Mode
Font weight500
Letter spacing0.08em
Glyph size13px
Rows30
Perspective0.55
Tilt24°
Horizon0.36
Amplitude1.60
Wavelength0.70
Speed1.00
Direction0°
Sharpness0.50
Envelope0.00
Flow0.8
Alternate
Fog0.60
Interactive
Hover focus
Focus depth0.30
Depth of field0.70
Focus range0.14
Click strum
Strum strength1.00
Tension1.00
Sustain1.6s
Paused
Quality1.00

Props

37
NameTypeDefaultDescription
look"tide" | "ridgeline" | "still-water" | "swell"NoneA named look that sets several props at once. A prop you pass yourself wins over it.
textstring"FORM FOLLOWS FEELING ·"The phrase repeated along every line.
colors[string, string]["#FFFFFF", "#7C5CFF"]Two colours: the near lines, and the far ones.
backgroundColorstring"#0A0A0A"The colour behind the lines.
mode"auto" | "glow" | "ink""auto"How the lines are drawn: glowing on dark, inked on light, or picked from the background.
fontFamilystringNoneThe font family. Follows the surrounding text by default.
fontWeightnumber500The font weight.
letterSpacingnumber0.08The letter spacing, in em.
glyphSizenumber13The size of the nearest letters, in pixels.
rowsnumber30The number of lines.
perspectivenumber0.55How much the far lines shrink, 0 to 1.
tiltnumber24The pitch of the view, in degrees. Lower looks along the surface, higher looks down on it.
horizonnumber0.36Where the horizon sits, as a share of the height from the top.
amplitudenumber1.6The height of the swells.
wavelengthnumber0.7The length of the swells, relative to the width.
speednumber1The pace of the swells.
directionnumber0The heading of the swells, in degrees.
sharpnessnumber0.5How peaked the crests are, 0 to 1.
envelopenumber0How much the swells gather into groups, 0 to 1.
flownumber0.8How fast the text runs along its line. Negative runs the other way.
alternatebooleanfalseRuns every second line the other way.
fognumber0.6How much the far lines fade into the background.
interactivebooleantrueResponds to the pointer.
hoverFocusbooleantrueFocus follows the pointer's depth, then eases back when it leaves.
focusDepthnumber0.3The depth in focus, 0 far to 1 near.
depthOfFieldnumber0.7How strongly lines out of focus blur, 0 to 1.
focusRangenumber0.14How deep the sharp band is.
clickStrumbooleantrueClicking strums the lines from the one you clicked.
strumStrengthnumber1The strength of a strum.
tensionnumber1How fast a strum travels along a line.
sustainnumber1.6How long a strum rings, in seconds.
pausedbooleanfalseFreezes the sea.
qualitynumber1The drawing resolution, 0.5 to 1. Lower is lighter on slow devices.
refRef<SwellLinesHandle>NoneGives strum.
childrenReactNodeNoneContent shown over the lines.
classNamestringNone
styleCSSPropertiesNone

Related