Component API

<animate-confetti>

Open live example

Fullscreen confetti animation overlay, rendered on a fixed-position canvas.
Starts automatically on first render and stops after duration ms.

Install

import "@f-ewald/components/animate-confetti.js";

Usage

<animate-confetti duration="6000"></animate-confetti>

Attributes / properties

PropertyAttributeTypeDefaultDescription
durationdurationnumber6000How long the confetti streams before stopping, in ms.

Events

None.

Slots

None.

CSS custom properties

None.