How to use the Confetti Animation CSS
- The preview starts with Confetti in mixed colors.
- Set how many pieces, size and speed; Sway makes them flutter.
- Turn off Mixed colors for one brand color.
- Copy the code onto your thank-you or success page.
Confetti that tumbles
Each piece is a small rectangle that falls with a slight sway while rotating in 3D (rotate3d), so it flips between its face and its edge like real paper. Colors are picked per piece with a CSS custom property.
For snow, rain and your own shapes see the Particle Animation Generator.
Also searched as: falling confetti css, confetti effect website, css confetti, confetti background animation, celebration animation css.
Tools that pair well with the Confetti Animation CSS
- CSS Snow Effect — Let it snow on your website for the holidays: soft snow or snowflakes, light flurries or a blizzard.
- Falling Stars Animation — Send shooting stars streaking across a night-sky hero, or let star shapes drift down and twirl.
- CSS Rain Animation — Make it rain on a page or hero section — from a light drizzle to a slanted downpour.
- CSS Animation Generator — Design CSS animations on a real keyframe timeline.