@dioramajs/particles/sparkles
Exports of @dioramajs/particles/sparkles.
import { around, default, POOL } from '@dioramajs/particles/sparkles'Functions
around | A spot around a box `width` x `height` centred at 0,0 (y up): a point of its outline picked evenly along it, pushed out along the side's normal by up to `spread`, or a little inside. |
Constants
default | Small twinkling sparkles around an element: while hovered, in a burst from a click, once as it comes into view, or all the time. For badges, "new" labels, premium buttons and product highlights. They draw over the page and never take a click; under reduced motion nothing loads. |
POOL | Sparkles one instance holds at once: one instanced draw. |