How catdad/canvas-confetti works
canvas-confetti is a browser-side particle animation library. A page or application calls its confetti API with launch and rendering options; the runtime creates particles, animates them on a canvas, and returns a promise when the animation completes. The README also documents reduced-motion handling and custom path- or text-based shapes. The source excerpt is partial, so internal links are limited to relationships visible in the excerpts or explicitly documented in the README.
Main entry points: confetti.js Confetti API
Components 6
Other components
- Web Page
- Confetti API
src/confetti.js - Particle Setup
src/confetti.js - Canvas Animation
src/confetti.js - Worker Rendering
src/confetti.js - Custom Shapes
src/confetti.js
Connections 6
- Web Page → Confetti API: calls
README.md - Confetti API → Particle Setup: creates particles
src/confetti.js - Confetti API → Canvas Animation: starts animation
src/confetti.js - Confetti API → Worker Rendering: dispatches when available
src/confetti.js - Canvas Animation → Particle Setup: updates and renders
src/confetti.js - Web Page → Custom Shapes: configures shapes
README.md