1. Components
  2. Confetti Animation

Third-Party Plugins

Tailwind CSS Confetti Animation

Add celebratory flair to your website with Tailwind CSS Confetti! Lightweight, customizable, and easy to integrate for fun, animated confetti effects.

Requires Additional Installation

Note that this component requires the use of the third-party Canvas Confetti plugin.

How to use

  1. Install Canvas Confetti.

    Install Canvas Confetti via npm

    Terminal
                          
                            npm i canvas-confetti
                          
                        
  2. Add the Canvas Confetti JavaScript

    Include the JavaScript <script> near the end of your </body> tag:

    HTML
                          
                        

Run on click

Run confetti on click.