Skip to content
PixiKit

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
NameTypeDefaultDescription
colorsstring[]["#7c3aed", "#a78bfa", "#2563eb", "#6366f1"]The colours the stars and dust are picked from.
countnumber16How many stars fly out of one burst.
distancenumber120How far the stars fly, in pixels.
durationnumber1100How long a star flies, in ms; each one varies around it.
disabledbooleanfalseNo bursts while on.
labelstring"Join the beta"The default button's text, shown when there are no children.
widthnumber320The default button's widest size in pixels; it never overflows a narrower container.
heightnumber72The default button's height in pixels; its text scales with it.
childrenReactNodeNoneWhat is clicked: a button, a card, anything. A default button shows without it.
classNamestringNone

More interaction effects in Pro

View all

Related