Click!
body {
  height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  font: 900 200% system-ui, sans-serif;
}
View Compiled
import confetti from "https://cdn.skypack.dev/canvas-confetti";

confetti();

window.addEventListener("click", () => {
  confetti();
});

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.