Sparks
A background of 1–2px sparks that rise from the bottom edge, cooling from hot to deep as they climb and dying out partway up.
$149 once · every Pro piece
Customize
The pointer is wind: sparks bend away from it and are carried along when it moves, and a click throws a small fan of hotter ones. Sparse and calm; particles come from a fixed pool and the loop stops off screen.
Install
npx shadcn@latest add @obsyde/sparksNeeds your licence key · Get Pro
Usage
Import it from where the CLI puts it, or copy the files below by hand.
import { Sparks } from '@/components/obsyde/ember/sparks/Sparks';
export function Example() {
return (
<Sparks />
);
}
Files
What you get with Pro: plain React, TypeScript and CSS, with no dependencies.
ember/sparks/Sparks.tsxcomponentember/sparks/sparks-demo.cssstylesember/sparks/sparks.cssstylesember/sparks/SparksDemo.tsxdemoember/effects-kit/kit.tssharedember/shared/accent.tssharedember/shared/spring.tssharedember/shared/ember.cssshared
API
| Prop | Type | Default |
|---|---|---|
accentAccent | 'ember' | 'volt' | 'arc' | 'ember' |
densityDensity (per 100px/s) | number | 1.6 |
gustsGusts | number | 0.15 |
windPointer wind | number | 1 |
burstBurst size | number | 12 |