Skip to content
PixiKit

Symbol Swell

A field of tiny triangles, circles and squares that follows slow wave bands, lights up where the cursor splashes and can carve text out of itself.

pixikit.com/docs/effects/symbol-swell

Customize

Font weight
Text size0.60
Shapes
Cell size10px
Dot size0.75
Color
Hover color
Background color
Speed1.0
Scale1.00
Contrast1.00
Brightness0.40
Flow0.0
Direction0deg
Fade0.25
Interactive
Splash radius40px
Splash strength0.40
Glow0.35
Intro
Intro duration1.6s
Paused

Props

27
NameTypeDefaultDescription
textstring""Optional text carved out of the field: cells under the glyphs stay empty and the waves flow around them.
fontFamilystring"Geist, \"Geist Sans\", system-ui, sans-serif"CSS font family used to draw the text cutout.
fontWeightstring | number500Font weight of the text cutout.
textSizenumber0.6Text height as a fraction of the container height; long text shrinks to fit the width.
shapes"mixed" | "squares" | "circles" | "triangles""mixed"mixed draws dark bands as triangles, mid bands as circles and bright bands as squares; the others use one glyph and vary its size per band instead.
cellSizenumber10Size of one grid cell in CSS pixels.
dotSizenumber0.75Glyph size as a fraction of the cell.
colorstring"#929292"Glyph colour; one flat colour for the whole field.
hoverColorstring"#ffffff"Colour the glyphs step towards inside a splash.
backgroundColorstring"#000000"Background colour behind the glyphs.
speednumber1How fast the wave bands morph over time; 0 freezes them.
scalenumber1Size of the wave bands; larger values give broader, calmer swells.
contrastnumber1How sharply the field is cut into its three bands.
brightnessnumber0.4Shifts the balance between dark, mid and bright bands.
flownumber0Drift speed of the field in cells per second; 0 evolves in place.
directionnumber0Drift direction in degrees, used when flow is above 0.
fadenumber0.25Strength of the radial fade into the background towards the edges; 0 disables it.
interactivebooleantrueLets the cursor splash into the field, lighting up the glyphs under it and along its path.
splashRadiusnumber40Size of a cursor splash in CSS pixels.
splashStrengthnumber0.4How brightly a splash lights the glyphs under the cursor; low values barely show.
glownumber0.35Bloom on lit glyphs; 0 turns the glow off.
introbooleantruePlays a spawn animation on mount: the shapes pop in along a wave that travels from the centre to the corners.
introDurationnumber1.6Length of the intro wave in seconds.
introKeystring | number0Change this value to replay the intro wave without remounting.
pausedbooleanfalseFreezes the wave motion; splashes keep working.
onError(error: Error) => voidNoneCalled when WebGL is unavailable; the canvas stays empty.
classNamestringNoneExtra class names for the canvas.

More background effects in Pro

View all

Related