felix-au

Fire Trail Cursor

Component

About

A canvas-based custom cursor effect that streams hot fire particles behind the mouse, with embers that burst outward on click.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Fire Trail Cursor to your project and fits it to your theme.

Code

How Fire Trail Cursor is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import FireTrailCursor from "@/components/ui/fire-trail-cursor";
import { useRef } from "react";

export default function FireTrailCursorDemo() {
  const containerRef = useRef(null);

  return (
    <div
      ref={containerRef}
      className="relative w-full h-screen overflow-hidden bg-black"
      style={{ cursor: "none" }}
    >
      <FireTrailCursor
        containerRef={containerRef}
        config={{
          count: 5,
          rise: 2,
          size: 4,
          pointerAnim: true,
          pointerAlpha: 0.35,
          pointerSizeMult: 1.5,
          clickAnim: true,
          clickEmberCount: 25,
        }}
      />
    </div>
  );
}

More by felix-au

View all
  • Matrix Rain Cursor

    Matrix Rain Cursor

    34
  • Constellation Cursor

    Constellation Cursor

    13
  • Wind Stream Cursor

    Wind Stream Cursor

    5
  • DNA Helix Cursor

    DNA Helix Cursor

    5
  • Rainbow Comet Cursor

    Rainbow Comet Cursor

    5
  • Pixel Shatter Cursor

    Pixel Shatter Cursor

    2
  • Bubble Float Cursor

    Bubble Float Cursor

    2
  • Ripple Wave Cursor

    Ripple Wave Cursor

    1