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| Name | Type | Default | Description |
|---|---|---|---|
scope | "container" | "page" | "container" | Fills its own box, or the whole page above everything. |
gridSize | number | 40 | Number of pixels across the longer side. |
trailSize | number | 0.1 | Radius of the trail brush, as a fraction of the longer side. |
maxAge | number | 250 | How long each part of the trail lasts, in milliseconds. |
interpolate | number | 5 | How many in-between points fill gaps on fast moves; higher is smoother. |
easingFunction | (x: number) => number | identity | Easing curve for how the trail swells in and fades out. |
color | string | "#ffffff" | Pixel colour. |
trailColor | string | None | A second colour the trail shifts to as it ages; leave it out for a single colour. |
gooeyFilter | boolean | true | Melts neighbouring pixels into liquid blobs; turn it off for separate pixels. |
gooeyStrength | number | 2 | How much the goo rounds the blobs. |
shape | "square" | "circle" | "diamond" | "square" | Shape of each pixel when goo is off. |
gap | number | 0.08 | Space 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. |
flow | number | 0 | How much the trail keeps drifting in the direction the pointer moved, 0 to 1. |
gravity | number | 0 | Makes the trail sag down as it fades; negative values make it rise, -1 to 1. |
sparkle | number | 0 | Makes fading pixels flicker, 0 to 1. |
shine | number | 0.6 | Glossy light on the pixels: bevels on every step, a brighter core and highlights, 0 to 1. |
glow | number | 0.4 | A soft glow around the trail, 0 to 1. |
clickBurst | boolean | false | Clicking splashes a ring of trail out from the pointer. |
imageSrc | string | None | An image the trail reveals: each pixel takes the colour of the image beneath it. |
dpr | number | 2 | Highest device pixel ratio drawn; capped at 2. |
className | string | None | |
style | CSSProperties | None |