Skip to content

Spark Trail

The cursor sheds sparks with real physics: they inherit its momentum, fall under gravity, bounce on the floor and cool from white to ember.

Plan
Free · MIT
Dependencies
React only
Props
8 (8 adjustable)

Free forever

MIT license, for personal and commercial projects. See installation

Move your cursor

Made with Furin: Pill Nav · Metal Button · Copy Morph

Props

PropTypeDefaultDescription
colorstring"#FFA94D"Color of the sparks: born nearly white and fading to ember.
densitynumber2How many sparks each stroke sheds (1 is subtle, 3 is a downpour).
thicknessnumber2.1Thickness of the sparks, in px.
gravitynumber760Gravity pulling them down, in px/s².
lifenumber0.9Seconds each spark lasts.
globalbooleanfalseFollows the cursor across the whole window instead of just the container.
autoplaybooleanfalseWanders on its own when nobody moves the cursor.
hintstring"Move your cursor"Hint text of the sample scene (only visible if you omit children).

Installation

Install it

1Install the package

npm i furin-ui

2Import it

import { SparkTrail } from "furin-ui";

Also with pnpm add furin-ui, yarn add furin-ui or bun add furin-ui. Each component ships its own CSS and imports it for you.

Dependencies

React
18 or later
Other libraries
none
License
MIT

Each file ships its own CSS: there's nothing else to install.

Keep exploring

  • A dark layer that only reveals hidden content where a flashlight beam points, with warm light, a spring when it opens and a soft falloff.

    Cursors

  • A red laser dot with bloom, speckle and natural hand tremor; if you move it fast, the beam shows up in the dust in the air. A click fires a flash.

    Cursors

  • The cursor is a loaded paint roller: drag it to reveal (or cover) your content with the dotted texture of a real roller, ragged edges, paint ridges at the ends and the shine of fresh paint that dries.

    Cursors