Smooth Cursor

Canvas-based smooth cursor trail with spring physics

smooth-cursor-tw

Move your cursor

The smooth trail will follow

Customize

Trail Settings

60
1
2

Physics

0.4
0.5

Appearance

#000000
9
0.1

Props

classNamestring

Additional CSS classes for the container.

Default:""
pointsCountnumber

Number of trail points that follow the cursor.

Default:40
lineWidthnumber

Width factor for the trail line. Higher values create thicker trails.

Default:0.3
springStrengthnumber

Spring force strength. Higher values make the trail follow faster.

Default:0.4
dampeningnumber

Dampening/friction factor. Lower values create more fluid motion.

Default:0.5
colorstring

Color of the cursor trail (hex, rgb, or named color).

Default:"#000000"
blurnumber

Blur amount in pixels. Creates a glowy, ethereal effect.

Default:0
mixBlendModeGlobalCompositeOperation

Canvas blend mode for the trail. Options include 'multiply', 'screen', 'overlay', 'difference', etc.

Default:"source-over"
velocityScaleboolean

Makes the trail dynamically thicker when moving faster, creating a reactive effect.

Default:false
trailOpacitynumber

Base opacity for the entire trail (0-1). Useful for subtle effects.

Default:1
smoothFactornumber

Controls curve smoothness. Higher values create smoother curves, lower values create more angular paths.

Default:1