Sparkle Trail Cursor

The SparkleTrailCursor adds a sparkling effect to the cursor. You can customize the properties below:

import { SparkleTrailCursor } from 'funky-cursor';

const Example = () => {
  const [color, setColor] = useState('#ff00cc'); // Default color
  const [size, setSize] = useState(10);           // Default size
  const [trails, setTrails] = useState(5);        // Default trails
  const [lifespan, setLifespan] = useState(500);  // Default lifespan (in ms)

  return (
    <div>
      <SparkleTrailCursor 
        color={color} 
        size={size} 
        trails={trails} 
        lifespan={lifespan} 
      />
    </div>
  );
};
Size: 10

Move your cursor around to see the sparkle trail effect!