tsParticles renders confetti, fireworks, snow, and other canvas particle animations for websites. Official wrappers exist for React, Vue, Angular, Svelte, and many other frameworks.
Overview
tsParticles is a JavaScript and TypeScript library for animated particle systems on the web. Developers configure density, motion, shapes, and interactivity to build backgrounds, celebratory confetti, fireworks, and similar effects without shipping a heavyweight dependency tree when using slim bundles.
The engine loads through npm or CDN hosts such as jsDelivr, cdnjs, and unpkg. Packages split into a core engine, slim and full bundles, and focused entry points for confetti, fireworks, ribbons, and basic setups. Ready-made presets cover snow, stars, bubbles, fire, hyperspace, and multiple confetti styles.
Framework-specific components wrap the engine for React, Next.js, Vue 2 and 3, Nuxt, Angular, Svelte, Solid, Astro, jQuery, and Web Components among others. A migration path helps projects move from legacy particles.js via a compatibility bundle. Custom plugins can extend shapes and behaviors.
Documentation emphasizes choosing the right bundle size, loading plugins before options that need them, and using the playground to tune JSON configs. The project also lists templates, demo pages, and WordPress-related distribution through third-party Elementor add-ons.
Key features
- Canvas particle and confetti effects
- Preset animations and themes
- React, Vue, Angular, Svelte wrappers
- CDN and npm distribution
- Slim and full bundle sizes
- particles.js compatibility package
- Custom shape and behavior plugins
- Interactive playground configs
Use cases
- Animated website backgrounds
- Celebration confetti overlays
- Fireworks landing page effects
- Framework-integrated hero sections
- Migrating legacy particles.js sites