Ghost Cursor

Customize Ghost Cursor

Brightness1.00x
Edge Intensity0.00
Trail Length50
Inertia0.50
Grain Intensity0.05
Bloom Strength0.10
Bloom Radius1.00
Bloom Threshold0.025
Fade Delay1000 ms
Fade Duration1500 ms

Props

PropertyTypeDefaultDescription
classNamestring''Optional class name appended to the ghost cursor container.
styleReact.CSSProperties{}Inline styles merged into the absolutely positioned canvas wrapper.
trailLengthnumber50Number of samples in the motion trail buffer. Larger values create longer ribbons.
inertianumber0.5How strongly the cursor continues drifting after pointer movement stops (0-1).
grainIntensitynumber0.05Post-process film grain strength applied to the rendered trail.
bloomStrengthnumber0.1Intensity for the Unreal Bloom pass producing the glow effect.
bloomRadiusnumber1.0Bloom kernel radius which widens or tightens the glow spread.
bloomThresholdnumber0.025Luminance threshold for bloom activation. Lower values bloom more pixels.
brightnessnumber1Multiplier applied to the accumulated trail color output.
colorstring'#B19EEF'Base hex color used for the shader tint and bloom.
mixBlendModeReact.CSSProperties['mixBlendMode']'screen'CSS mix-blend-mode applied to the WebGL canvas for compositing.
edgeIntensitynumber0Attenuation applied near viewport edges to soften the trail.
maxDevicePixelRationumber0.5Upper bound for device pixel ratio to manage GPU workload.
targetPixelsnumber-Optional pixel budget override for adaptive resolution scaling.
fadeDelayMsnumberisTouch ? 500 : 1000Delay after pointer idle before the trail begins fading out.
fadeDurationMsnumberisTouch ? 1000 : 1500Duration of the fade animation once inactivity threshold is reached.
zIndexnumber10Stacking context for the absolutely positioned canvas element.

Dependencies

threethree/examplespostprocessing

Created with ❤️ by Cybershoora