0Views
0Copies
Variants
Loading preview...
API Reference
Props for <SparkTrail />
| Prop | Type | Default | Description |
|---|---|---|---|
| backgroundColor | string | "#111111" | The surface under the sparks. |
| glowColor | string | "rgba(245, 165, 36, 0.16)" | A soft light around the idle source; fully transparent removes it. |
| hotColor | string | "#fff9c2" | A particle's color at birth. |
| warmColor | string | "#ffc15c" | Its color halfway through its life. |
| coolColor | string | "#f55200" | Its color as it dies out. |
| Prop | Type | Default | Description |
|---|---|---|---|
| shape | 'spark' | 'flame' | "spark" | How each particle is drawn: thin hot streaks or soft glowing flames. |
| Prop | Type | Default | Description |
|---|---|---|---|
| sparksPerMove | number | 3 | Particles thrown per 10px of pointer travel; 0 turns the pointer trail off. |
| hoverRate | number | 0 | Particles per second given off at the pointer while it is over the area, even at rest; 0 turns it off. |
| momentum | number | 1 | How much of the pointer's speed a thrown particle carries. |
| attraction | number | 0 | How strongly particles drift toward the pointer while it is over the area; 0 ignores it. |
| idleRate | number | 26 | Particles per second from the idle source; 0 turns it off. |
| idleX | number | 57 | Where the idle shower comes from, across the width. |
| idleY | number | 30 | Where the idle shower comes from, down from the top. |
| idleSpread | number | 30 | How far either side of its center the idle source reaches. |
| idleHeight | number | 8 | How tall the idle source is, above and below its center. |
| coneAngle | number | 162 | How wide the idle shower and the hover burn fan out around straight up. |
| gravity | number | 900 | Downward pull; below 0 the particles rise, like flames. |
| wobble | number | 0 | Sideways sway, each particle on its own rhythm; 0 flies straight. |
| twinkle | number | 0 | How much each particle flickers in brightness; 0 holds it steady. |
| life | number | 0.9 | How long one particle lives. |
| minSpeed | number | 260 | The slowest launch speed. |
| maxSpeed | number | 620 | The fastest launch speed. |
| sparkWidth | number | 1 | Particle size. |
| trailLength | number | 1 | How long each spark's streak is. |
| Prop | Type | Default | Description |
|---|---|---|---|
| flare | boolean | false | A click flares the fire up at the pointer, as if fuel were thrown on it. Set by the Wildfire variant; never shown in the customizer. |
| Prop | Type | Default | Description |
|---|---|---|---|
| maxSparks | number | 420 | Most particles alive at once, so a frantic pointer can't flood the frame. |
S
Motion score
Compositor-only
- Category
- Cursor Effects
- Framework
- React
- Published
- Dec 4, 2026
- Dependencies
- Variants
Spark Trail
A canvas spark shower that strikes sparks along the pointer's path as it moves across the area, over a steady shower falling from a glowing source. Each spark is thrown with the pointer's momentum, arcs under gravity and cools from white-hot through amber to red. Colors, shower position and rate, gravity, life, speed and spark size can all be set.