Skip to content
PixiKit

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
NameTypeDefaultDescription
scope"container" | "page""container"Fills its own box, or the whole page above everything.
colorstring"#B497CF"Colour of the smoke; dense parts glow lighter.
sizenumber80Size of the ghost, in pixels.
trailLengthnumber50How long the smoke lingers behind the pointer, 1 to 200.
inertianumber0.5How far the ghost floats behind the pointer and glides on when it leaves, 0 to 0.99.
turbulencenumber0.5How much the smoke swirls and curls as it drifts, 0 to 2.
driftnumber0.3How fast the smoke rises; negative values let it sink.
detailnumber1How wispy the smoke is, 0 for a soft glow to 1 for billowing wisps.
brightnessnumber1Brightness of the smoke.
bloomStrengthnumber0.6Strength of the soft glow around the smoke.
bloomRadiusnumber1How far the glow spreads, 0 to 3.
bloomThresholdnumber0.025How bright smoke has to be before it glows; higher values keep the glow on the core.
grainIntensitynumber0.05Film grain over the smoke, 0 to 1.
edgeIntensitynumber0Fades the smoke out toward the edges of the area, 0 to 1.
clickPuffbooleantrueClicking releases a puff of smoke.
introbooleantrueThe 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.
mixBlendModestringNoneCSS blend mode for the canvas; `screen` in dark and `normal` in light when left out.
fadeDelayMsnumberNoneTime after the pointer stops before the ghost starts to fade, in milliseconds.
fadeDurationMsnumberNoneHow long the fade takes, in milliseconds.
maxDevicePixelRationumber2Highest pixel ratio the canvas renders at.
targetPixelsnumberNonePixel budget for the smoke; large areas render at a lower resolution to stay fast.
zIndexnumber10Stacking order of the effect over your content.
classNamestringNone
styleCSSPropertiesNone

Related