Konfeti.fire({
origin: { x: 0.5, y: 0.4 }, // the center of the shape
formation: { text: "TEBRİKLER", font: "900 110px sans-serif", hold: 1200 },
shapes: [{ type: "paper", weight: 3 }, { type: "star" }],
});
Konfeti.fire({ formation: { image: "/logo.png", mode: "appear" }, startVelocity: [300, 600] });
Formation Settings. Particles first form a shape, text or an image, hold it, then burst apart. Set
textorimage(not both); every shape type can take part, and the rest of the burst options apply as usual once the shape breaks up:startVelocitybecomes the speed at which particles fly outward from the shape's center.