Sparkle Burst
Wraps anything clickable: a click bursts stars out of the point clicked. A hook fires the same burst from code.
pixikit.com/docs/effects/sparkle-burst
Customize
Colors4 of 10
Count16
Distance120px
Duration1100ms
Disabled
Width320px
Height72px
Props
10| Name | Type | Default | Description |
|---|---|---|---|
colors | string[] | ["#7c3aed", "#a78bfa", "#2563eb", "#6366f1"] | The colours the stars and dust are picked from. |
count | number | 16 | How many stars fly out of one burst. |
distance | number | 120 | How far the stars fly, in pixels. |
duration | number | 1100 | How long a star flies, in ms; each one varies around it. |
disabled | boolean | false | No bursts while on. |
label | string | "Join the beta" | The default button's text, shown when there are no children. |
width | number | 320 | The default button's widest size in pixels; it never overflows a narrower container. |
height | number | 72 | The default button's height in pixels; its text scales with it. |
children | ReactNode | None | What is clicked: a button, a card, anything. A default button shows without it. |
className | string | None |