Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
react-confetti-boom
Advanced tools
A customizable React confetti explosion component for celebrations and special events
🚀 Bring Joy and Celebration to Your React App! Dive into a world of vibrant animations with React Confetti Boom, the ultimate confetti component for React developers.
React Confetti Boom offers a lightweight, flexible, and easy-to-use solution to add a touch of celebration to your application. Whether it's celebrating a user achievement, a special event, or adding fun interactions, our confetti animation component will bring your React application to life.
npm install react-confetti-boom
Just a few lines to create an unforgettable moment:
import Confetti from 'react-confetti-boom';
function MyApp() {
return <Confetti />;
}
Experience the magic firsthand and customize the confetti to your liking: Live Demo
Fine-tune the celebration with our comprehensive props:
Name | Type | Default | Description |
---|---|---|---|
mode | 'boom' | 'fall' | 'boom' | Mode for confetti animation. 'boom' for explosion-like, 'fall' for rain-like effect |
x | number | 0.5 | Horizontal starting position of confetti as a ratio of canvas width (0 to 1) |
y | number | 0.5 | Vertical starting position of confetti as a ratio of canvas height (0 to 1) |
particleCount | number | 30 | Number of confetti particles to generate |
deg | number | 270 | Initial angle (in degrees) at which particles are emitted |
shapeSize | number | 12 | Size of confetti particles |
spreadDeg | number | 30 | Angle (in degrees) that particles can deviate from the initial angle (deg) |
effectInterval | number | 3000 | Interval (in ms) between consecutive confetti bursts |
effectCount | number | 1 | Number of confetti bursts to render |
colors | string[] | ['#ff577f', '#ff884b', '#ffd384', '#fff9b0'] | Array of colors for confetti particles, in hex format |
launchSpeed | number | 1 | Initial speed at which particles are launched |
fadeOutHeight | number | 0.8 | Height ratio (0 to 1) where particles completely disappear in 'fall' mode (added in v1.1.0) |
<Confetti mode="boom" particleCount={50} colors={['#ff577f', '#ff884b']} />
Celebrate achievements with a burst of color!
Loving React Confetti Boom? Here's how you can help us make the project even better!
Let's celebrate coding, one confetti burst at a time! 🎉
Proudly open-sourced under the MIT License.
FAQs
A customizable React confetti explosion component for celebrations and special events
The npm package react-confetti-boom receives a total of 2,886 weekly downloads. As such, react-confetti-boom popularity was classified as popular.
We found that react-confetti-boom demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.