I wrote a post about tsParticles and the new confetti animation created in the 1.30
version.
[JS] How to create beautiful and realistic confetti animation with tsParticles
Matteo Bruni for tsParticles ・ Jun 29 '21
This configuration can be used as is in any React tsParticles installation.
import Particles from "react-tsparticles"
<!-- this component can be placed anywhere -->
<Particles options={/* paste options here */} />
A working sample can be found below
tsparticles / tsparticles
tsParticles - Easily create highly customizable JavaScript particles effects, confetti explosions and fireworks animations and use them as animated backgrounds for your website. Ready to use components available for React.js, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Inferno, Solid, Riot and Web Components.
tsParticles - TypeScript Particles
A lightweight TypeScript library for creating particles. Dependency free (*), browser ready and compatible with React.js, Vue.js (2.x and 3.x), Angular, Svelte, jQuery, Preact, Inferno, Riot.js, Solid.js, and Web Components
Table of Contents
-
tsParticles - TypeScript Particles
- Table of Contents
- Do you want to use it on your website?
- Library installation
- Official components for some of the most used frameworks
- Presets
- Templates and Resources
- Demo / Generator
- Video Tutorials
- …
Top comments (1)
Is today confetti day?
Some comments have been hidden by the post's author - find out more