Ghost Trail
A billowing ghost of smoke floats after the pointer, glows at its core, leaves wisps that rise and dissolves when the pointer rests.
pixikit.com/docs/effects/ghost-trail
Customize
Scope
Color
Size80px
Trail length50
Inertia0.50
Turbulence0.50
Drift0.30
Detail1.00
Brightness1.00
Bloom strength0.60
Bloom radius1.00
Bloom threshold0.025
Grain intensity0.05
Edge intensity0.00
Click puff
Intro
Theme
Fade delay ms1000ms
Fade duration ms1500ms
Max device pixel ratio2.00
Props
25| Name | Type | Default | Description |
|---|---|---|---|
scope | "container" | "page" | "container" | Fills its own box, or the whole page above everything. |
color | string | "#B497CF" | Colour of the smoke; dense parts glow lighter. |
size | number | 80 | Size of the ghost, in pixels. |
trailLength | number | 50 | How long the smoke lingers behind the pointer, 1 to 200. |
inertia | number | 0.5 | How far the ghost floats behind the pointer and glides on when it leaves, 0 to 0.99. |
turbulence | number | 0.5 | How much the smoke swirls and curls as it drifts, 0 to 2. |
drift | number | 0.3 | How fast the smoke rises; negative values let it sink. |
detail | number | 1 | How wispy the smoke is, 0 for a soft glow to 1 for billowing wisps. |
brightness | number | 1 | Brightness of the smoke. |
bloomStrength | number | 0.6 | Strength of the soft glow around the smoke. |
bloomRadius | number | 1 | How far the glow spreads, 0 to 3. |
bloomThreshold | number | 0.025 | How bright smoke has to be before it glows; higher values keep the glow on the core. |
grainIntensity | number | 0.05 | Film grain over the smoke, 0 to 1. |
edgeIntensity | number | 0 | Fades the smoke out toward the edges of the area, 0 to 1. |
clickPuff | boolean | true | Clicking releases a puff of smoke. |
intro | boolean | true | The ghost floats across once when it first appears, before the pointer arrives. |
theme | "dark" | "light" | "dark" | Glowing smoke for dark pages, or soft ink smoke for light ones. |
mixBlendMode | string | None | CSS blend mode for the canvas; `screen` in dark and `normal` in light when left out. |
fadeDelayMs | number | None | Time after the pointer stops before the ghost starts to fade, in milliseconds. |
fadeDurationMs | number | None | How long the fade takes, in milliseconds. |
maxDevicePixelRatio | number | 2 | Highest pixel ratio the canvas renders at. |
targetPixels | number | None | Pixel budget for the smoke; large areas render at a lower resolution to stay fast. |
zIndex | number | 10 | Stacking order of the effect over your content. |
className | string | None | |
style | CSSProperties | None |