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| Name | Type | Default | Description |
|---|---|---|---|
look | "tide" | "ridgeline" | "still-water" | "swell" | None | A named look that sets several props at once. A prop you pass yourself wins over it. |
text | string | "FORM FOLLOWS FEELING ·" | The phrase repeated along every line. |
colors | [string, string] | ["#FFFFFF", "#7C5CFF"] | Two colours: the near lines, and the far ones. |
backgroundColor | string | "#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. |
fontFamily | string | None | The font family. Follows the surrounding text by default. |
fontWeight | number | 500 | The font weight. |
letterSpacing | number | 0.08 | The letter spacing, in em. |
glyphSize | number | 13 | The size of the nearest letters, in pixels. |
rows | number | 30 | The number of lines. |
perspective | number | 0.55 | How much the far lines shrink, 0 to 1. |
tilt | number | 24 | The pitch of the view, in degrees. Lower looks along the surface, higher looks down on it. |
horizon | number | 0.36 | Where the horizon sits, as a share of the height from the top. |
amplitude | number | 1.6 | The height of the swells. |
wavelength | number | 0.7 | The length of the swells, relative to the width. |
speed | number | 1 | The pace of the swells. |
direction | number | 0 | The heading of the swells, in degrees. |
sharpness | number | 0.5 | How peaked the crests are, 0 to 1. |
envelope | number | 0 | How much the swells gather into groups, 0 to 1. |
flow | number | 0.8 | How fast the text runs along its line. Negative runs the other way. |
alternate | boolean | false | Runs every second line the other way. |
fog | number | 0.6 | How much the far lines fade into the background. |
interactive | boolean | true | Responds to the pointer. |
hoverFocus | boolean | true | Focus follows the pointer's depth, then eases back when it leaves. |
focusDepth | number | 0.3 | The depth in focus, 0 far to 1 near. |
depthOfField | number | 0.7 | How strongly lines out of focus blur, 0 to 1. |
focusRange | number | 0.14 | How deep the sharp band is. |
clickStrum | boolean | true | Clicking strums the lines from the one you clicked. |
strumStrength | number | 1 | The strength of a strum. |
tension | number | 1 | How fast a strum travels along a line. |
sustain | number | 1.6 | How long a strum rings, in seconds. |
paused | boolean | false | Freezes the sea. |
quality | number | 1 | The drawing resolution, 0.5 to 1. Lower is lighter on slow devices. |
ref | Ref<SwellLinesHandle> | None | Gives strum. |
children | ReactNode | None | Content shown over the lines. |
className | string | None | |
style | CSSProperties | None |