Back to Components

Trailing Cursor

Smooth lines that follow your cursor with spring physics

Move your cursor over the demo

How to add this to your site

Use with Claude Code, Codex, Cursor, etc.
1

Copy URL or Code

2

Paste to your AI coding assistant and customize:

  • - Change gradient colors to match your brand
  • - Adjust line count and thickness
  • - Tune spring and friction for different feel
3

Done. Your AI handles the rest.

Fully customizable. Multiple trailing lines follow mouse with spring physics. Supports touch on mobile. Great for hero sections and interactive backgrounds.