Smooth Cursor

Canvas-based smooth cursor trail with spring physics

smooth-cursor-tw

Move your cursor

The smooth trail will follow

Customize

60
1
0.4
0.5
9
0.1
2

Props

NameTypeDefaultDescription
classNamestring""Additional CSS classes for the container.
pointsCountnumber40Number of trail points that follow the cursor.
lineWidthnumber0.3Width factor for the trail line. Higher values create thicker trails.
springStrengthnumber0.4Spring force strength. Higher values make the trail follow faster.
dampeningnumber0.5Dampening/friction factor. Lower values create more fluid motion.
colorstring"#000000"Color of the cursor trail (hex, rgb, or named color).
blurnumber0Blur amount in pixels. Creates a glowy, ethereal effect.
mixBlendModeGlobalCompositeOperation"source-over"Canvas blend mode for the trail. Options include 'multiply', 'screen', 'overlay', 'difference', etc.
velocityScalebooleanfalseMakes the trail dynamically thicker when moving faster, creating a reactive effect.
trailOpacitynumber1Base opacity for the entire trail (0-1). Useful for subtle effects.
smoothFactornumber1Controls curve smoothness. Higher values create smoother curves, lower values create more angular paths.