Skip to content
PixiKit

Block Trail

Big pixels light up under the pointer and melt away, leaving a blocky liquid trail with bevels and glow.

pixikit.com/docs/effects/block-trail

Customize

Scope
Grid size50
Trail size0.10
Max age500ms
Interpolate5
Color
Trail color
Gooey filter
Gooey strength2.0
Shape
Gap0.08
Decay
Flow0.00
Gravity0.00
Sparkle0.00
Shine0.60
Glow0.40
Click burst
Dpr2.00

Props

23
NameTypeDefaultDescription
scope"container" | "page""container"Fills its own box, or the whole page above everything.
gridSizenumber40Number of pixels across the longer side.
trailSizenumber0.1Radius of the trail brush, as a fraction of the longer side.
maxAgenumber250How long each part of the trail lasts, in milliseconds.
interpolatenumber5How many in-between points fill gaps on fast moves; higher is smoother.
easingFunction(x: number) => numberidentityEasing curve for how the trail swells in and fades out.
colorstring"#ffffff"Pixel colour.
trailColorstringNoneA second colour the trail shifts to as it ages; leave it out for a single colour.
gooeyFilterbooleantrueMelts neighbouring pixels into liquid blobs; turn it off for separate pixels.
gooeyStrengthnumber2How much the goo rounds the blobs.
shape"square" | "circle" | "diamond""square"Shape of each pixel when goo is off.
gapnumber0.08Space between pixels, as a fraction of a pixel; with goo on it draws fine seams between them.
decay"fade" | "shrink" | "dither""fade"How pixels disappear: fading out, shrinking away or dropping out in a dither pattern.
flownumber0How much the trail keeps drifting in the direction the pointer moved, 0 to 1.
gravitynumber0Makes the trail sag down as it fades; negative values make it rise, -1 to 1.
sparklenumber0Makes fading pixels flicker, 0 to 1.
shinenumber0.6Glossy light on the pixels: bevels on every step, a brighter core and highlights, 0 to 1.
glownumber0.4A soft glow around the trail, 0 to 1.
clickBurstbooleanfalseClicking splashes a ring of trail out from the pointer.
imageSrcstringNoneAn image the trail reveals: each pixel takes the colour of the image beneath it.
dprnumber2Highest device pixel ratio drawn; capped at 2.
classNamestringNone
styleCSSPropertiesNone

More interaction effects in Pro

View all

Related