xxxxxxxxxx
import confetti from 'https://cdn.skypack.dev/canvas-confetti';
confetti();
xxxxxxxxxx
// https://confetti.js.org/
// drop this in the footer of your html
// <script src="https://cdn.jsdelivr.net/npm/tsparticles-confetti@2.12.0/tsparticles.confetti.bundle.min.js"></script>
const colors = ["#bb0000", "#ffffff"]
// confetti function
function frame() {
confetti({
particleCount: 130,
spread: 70,
origin: { y: 0.6 },
colors
})
}