Toggle Sidebar B
AppearanceLight & dark mode D

Glow Cursor

Shader-powered light trail that smoothly follows the pointer with customizable glow, color, taper and pulse.

Default

Every prop is wired to the controls underneath. Move the pointer across the stage to draw the trail. The trail only lives inside this stage.

Dark previewReplay previewOpen in new tab

Move Your Cursor

Customize

Head Color
Tail Color
Blend Mode
Trail Length40
Trail Width8px
Trail Taper0.8
Follow Speed0.16
Glow Intensity1.9
Glow Spread1.2
Hotspot0.65
Brightness1.25
Opacity1
Pulse Speed1.1
Noise0.035
Idle Timeout700ms
Fade Duration900ms
Max DPR1.5

API Reference

GlowCursor

PropTypeDefaultDescription
colorstring'#67E8F9'Color at the bright head of the trail.
secondaryColorstring'#A78BFA'Color blended into the end of the trail.
trailLengthnumber40Number of smoothed points used to build the trail, from 2 to 64.
trailWidthnumber8Width of the luminous trail core in pixels.
trailTapernumber0.8How strongly the trail narrows and dims toward its tail.
followSpeednumber0.16How quickly the glowing head catches the pointer.
glowIntensitynumber1.9Strength of the soft inverse-square halo around the trail.
glowSpreadnumber1.2Distance the outer glow spreads from the trail core.
hotspotnumber0.65Amount of white-hot color added to the brightest part of the trail.
brightnessnumber1.25Final luminance multiplier for the shader.
opacitynumber1Overall trail opacity.
pulseSpeednumber1.1Speed of the energy pulse travelling through the trail. Set to 0 to stop it.
noiseStrengthnumber0.035Amount of fine animated texture in the glow.
idleFadebooleantrueFade the effect when the pointer stops or leaves the container.
idleTimeoutnumber700Idle time in milliseconds before fading begins.
fadeDurationnumber900Approximate duration of the idle fade in milliseconds.
blendMode'normal' | 'screen' | 'plus-lighter''screen'CSS blend mode used to composite the canvas over its content.
maxDevicePixelRationumber1.5Render-resolution cap for balancing sharpness and GPU cost.
enabledbooleantrueEnable or fade out the cursor effect.
default slotVNode-Optional content rendered beneath the interactive trail.

Accessibility

Keyboard shortcuts and ARIA behavior.

  • Purely decorative canvas with pointer-events disabled, so the content underneath stays interactive. Turn off the effect with enabled for users who prefer reduced motion.